Read a page after another from a drop down menu - Can't find the drop down on 2nd page
You have to reinstantiate the Select()
every time a new page is loaded:
from selenium import webdriverfrom selenium.webdriver.support.ui import Selectdriver = webdriver.Firefox()driver.get("http://www.hillsproducts.com/General.aspx/en-GB/PD/a-d-canine/original/can")index = 0while True: select = Select(driver.find_element_by_id("productSpecifier_product")) # exit the loop if all the options were seen if index >= len(select.options): break select.select_by_index(index) print(driver.current_url) index += 1