1
Good afternoon guys, I wonder if anyone can help me ...
I am automating a page and would like to know if it is possible to use an Excell spreadsheet to popular the fields ...
for example:
Today I am using the following command below, it inserts into the element mname
the Marian information, this I entered manually.
driver.find_element_by_id("mname").send_keys("mariano")
What do I need? I need that instead of this Marian, it looks for information that is in an Excell spreadsheet, so I will use Excell as a parameter without having to touch my script
driver.find_element_by_id("mname").send_keys("Dados da coluna A2 do Excell")
Thank you very much.
Thank you Cochise, I will study here and see if I have a good result ... abçs
– Michel
Good afternoon Cochise, it worked ... thank you very much. book = xlrd.open_workbook("spreadsheet.xls") sh = book.sheet_by_index(0) I used this routine within the function.. driver.find_element_by_id("fname"). send_keys(sh.cell_value(rowx=2-1, colx=1-1))
– Michel