I am automating a website, and it has multiple searchboxes with the same title, class, etc. It usually occurs 2 or 3 times on every page. Is there a way in which I can tell Selenium to only use the 2nd or 3rd occurrence?
I currently have this:
driver.find_element(By.XPATH, './/*[@title = "Searchbox"]').click()
And
driver.find_element(By.XPATH, './/*[@title = "Searchbox"]').send_keys(i)
It currently clicks the first searchbox and types number i, but I want Selenium to do this for any other searchbox with the same html.
Thanks!