vendredi 27 juillet 2018

How do I iterate through each google search page using Selenium Python,but its not happening

I am trying to iterate through each page, but below code is not working for me.

pages=driver.find_elements_by_xpath("//*[@id='nav']/tbody/tr/td/a") print len(pages) counter=1 for page in pages: counter+=1 page.click()

Aucun commentaire:

Enregistrer un commentaire