🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] # 工具 ![](https://img.kancloud.cn/e7/88/e78887524c958815023c8b0cb9b6c218_793x505.png) # 工作原理 ![](https://img.kancloud.cn/43/32/4332697f6bba6dcf59ad45b019815882_707x492.png) ## webdriver ![](https://img.kancloud.cn/39/f0/39f0930d306b99004f8c24e0b6287ca1_810x486.png) # 测试下 ~~~ from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains br = webdriver.Chrome() br.get("https://www.baidu.com") frist = br.find_element_by_link_text("设置") ActionChains(br).move_to_element(frist).perform() menu = br.find_element_by_link_text("搜索设置") menu.click() ~~~