'Having trouble selecting dropdown with Python Selenium
I am currently trying my hand at web scraping in order to automate some searches for work. The website that I'm scraping is here:
Wisconsin RETR (under RETR Search -- Advanced in case the page doesn't display correctly) . I'm trying to select "County Name" from the drop-down so I can then figure out how to add a name, click add, then click search (lots of future steps to figure out). My initial difficulty is that I can't seem to access the element. After viewing the page source, the id=sCriteria but when I use driver.find_element(By.ID, 'sCriteria'), I get an error saying "no such element: Unable to locate element: {"method":"css selector","selector":[id="sCriteria"]"}.
I know the element is there because I can see it on the page source, but no matter what I've tried after scouring the internet for the afternoon, nothing seems to work. Also, when I enter this into Python,
ids=driver.find_elements_by_xpath('//*[id]')
for ii in ids:
print(ii.get_attribute('id'))
I get a list of ids that I can located in the webpage but it doesn't contain the one I need. I think it has to do with the id=sCriteria embedded within a table that is located inside Form1, but honestly I have no idea and I'm pretty sure that it's not located within a frame. Also, here is a screen capture of the html associated with the element I'm trying to select. 
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
