我正在尝试使用ActionChains中的move_to_element触发鼠标悬停事件,但无法正常工作。任何帮助表示赞赏。谢谢。 最佳答案 fromselenium.webdriver.common.action_chainsimportActionChainsActionChains(drivers).move_to_element(drivers.find_element_by_id('element_id')).click().perform()如果你想选择任何值,menu1=drivers.find_element_by_