Automate Web Browsing Using Python
from selenium import webdriver chromedriver = 'C:\\chromedriver.exe' browser = webdriver.Chrome(chromedriver) browser.get('http://www.example.com') Then, how can I click on the th
Solution 1:
You can use a xpath expresion to get all inputs with a "Download" value, and click the third:
browser.find_elements_by_xpath('//input[@value="Download"]')[2].click()
Post a Comment for "Automate Web Browsing Using Python"