python自动化测试流程
1.下载selenium
pip install selenium
2.下载驱动
选择自己浏览器对应版本
google:
https://chromedriver.storage.googleapis.com/index.html
火狐:
https://github.com/mozilla/geckodriver/releases
放到python根目录或者配置环境变量
3.获取标签
driver.find_elements(By.TAG_NAME,“button”)
By有id,tag,name,cla
原创
2021-12-16 15:21:13 ·
296 阅读 ·
0 评论