06 2021 档案
摘要:代码 原代码: import timeimport unittestimport loggingfrom time import sleepfrom BSTestRunner import BSTestRunner#指定测试用例和测试报告的路径test_dir='./testcase'report_
阅读全文
摘要:关于Python+selenium 定位浏览器弹窗元素 链接:https://www.jianshu.com/p/4c3330c1cdb5 (1)div弹窗 (2)新标签页弹窗 (3)alert弹窗 一,div弹窗 div弹窗是浏览器中比较好定位的弹窗,定位的方法与普通的元素一样。不过这里会有一个坑
阅读全文
摘要:# coding = utf-8import timefrom selenium import webdriverfrom time import sleepdriver = webdriver.Chrome()driver.get("http://www.baidu.com/")time.slee
阅读全文