0
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 third Download button?

1 Answer 1

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()
Sign up to request clarification or add additional context in comments.

1 Comment

thank you so much. You may be interested in my next question too: stackoverflow.com/questions/21186327/… @Krzysztof Rosiński

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.