I am trying to click items from a select box using selenium like this
from selenium.webdriver.support.ui import Select
...
county_list = Select(driver.find_element_by_id('cityCode'))
for option in county_list.options:
print(f"option.text == {option.text}")
However, I am getting only one option from the for loop when there are more than one options. I feel like the problem is that an option is commented out in the html like below
<select id="cityCode">
<option value="-1">Choice</option>
<!-- option value="0">All</option-->
<option value="1">First</option>
<option value="2">Second</option>
<option value="3">Third</option>
</select>
Is there any way to get all the child elements using Selenium?