使用python selenium选择隐藏的

使用python selenium选择隐藏的,python,selenium,Python,Selenium,我有这么多的html源代码: 格林尼治标准时间2:27+2 我们发现: search_timezone = driver.find_element_by_class_name("timezone") action = ActionChains(driver) action.move_to_element(search_timezone).perform() wait = WebDriverWait(driver, 10) select_timezone = search_timezone.fi

我有这么多的html源代码:

格林尼治标准时间2:27+2 我们发现:

search_timezone = driver.find_element_by_class_name("timezone")
action = ActionChains(driver)
action.move_to_element(search_timezone).perform()
wait = WebDriverWait(driver, 10)
select_timezone = search_timezone.find_elements_by_tag_name('a')[3]
select_timezone.click()