The code you show dos not use
Select
at all.hour=browser.find_element_by_css_selector('#TimeOfCallDropDownList') hour.select_by_value(hh)See how i do it in my code.
select_time = Select(browser.find_element_by_id('TimeOfCallDropDownList')) select_time.select_by_visible_text('03:00 AM')