摘要: 详见https://www.cnblogs.com/dreamyu/p/9317721.html 阅读全文
posted @ 2021-02-24 14:53 狂飙的老蜗牛 阅读(226) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains driver = webdriver.Firefox() driver.get 阅读全文
posted @ 2021-02-24 14:51 狂飙的老蜗牛 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 1、添加参数 2、win命令引用 %参数名称% 比如,python main.py --env=%env% 3、shell命令引用 ${参数名称} 阅读全文
posted @ 2021-02-24 14:48 狂飙的老蜗牛 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1、通过父节点定位子节点 # 1.串联寻找 print driver.find_element_by_id('B').find_element_by_tag_name('div').text # 2.xpath父子关系寻找 print driver.find_element_by_xpath("// 阅读全文
posted @ 2021-02-24 14:37 狂飙的老蜗牛 阅读(3594) 评论(0) 推荐(0) 编辑