I want to selectively iterate through a drop down menu in this case starting from 2010 to the present year (I want this to be open ended as I need to run it in the future).
I have only come across previous questions where either one selection or every selection in the drop down is wanted.
Chrome_Path = r"C:\Users\George\Desktop\chromedriver.exe"
driver.get("http://www.snookerdatabase.co.uk")
driver.find_element_by_xpath("""//*[@id="Table1"]/tbody/tr[3]/td[1]/b/a[2]""").click()
driver.find_element_by_name("year").click()