Skip to content
Advertisement

looping through several columns and rows from csv to fill a form

Have been trying to emulate examples posted earlier, yet got stuck.

I have a simple web form: Last name, name, email, password, confirm password.

Also a .csv with 4 columns that corresponds to the form

JavaScript

So, all I want is to feed the 3 entries to the form and click “Sent” after each entry.

I copycated a code from here that seemed passing but I keep getting this

JavaScript

the code I tried

JavaScript

Any nudge into the right direction will be highly appreciated since I have seen plenty of examples of using lists with send_keys()

Thanks!

Advertisement

Answer

The error message indicates that you are using send_keys() with plain python lists.

According to Selenium docs, find_elements_by_xpath does indeed return a list.

It’s possible that you meant to use find_element_by_xpath (without the ‘s’ after element)?

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement