09 2020 档案

Python+Selenium之CSS元素定位(以百度为例)
摘要:1 from selenium import webdriver 2 driver = webdriver.Chrome() 3 driver.get("https://www.baidu.com/") 4 # 通过id属性(css属性) 5 driver.find_element_by_css_s 阅读全文

posted @ 2020-09-21 15:18 Tester十点半 阅读(386) 评论(0) 推荐(0)

Python+Selenium之Xpath元素定位(以百度为例)
摘要:1 from selenium import webdriver 2 driver = webdriver.Chrome() 3 driver.get("https://www.baidu.com/") 4 # 用Xpath通过id属性定位 5 # driver.find_element_by_xp 阅读全文

posted @ 2020-09-21 14:10 Tester十点半 阅读(386) 评论(0) 推荐(0)

Python+Selenium登录GitHub实例
摘要:1、话不多说,直接上代码 1 from selenium import webdriver # 导入包 2 import time 3 driver = webdriver.Chrome() # 指定浏览器 4 driver.get("https://github.com/login") # 指定网 阅读全文

posted @ 2020-09-18 17:40 Tester十点半 阅读(530) 评论(0) 推荐(0)

火狐浏览器关闭更新提示
摘要:1、找到浏览器的安装位置(鼠标右键,打开文件位置) 2、打开安装目录下的distribution文件夹→添加文件policies.json policies.json文件内容: { "policies": { "DisableAppUpdate": true } } 3、重启后没有更新提示 阅读全文

posted @ 2020-09-18 14:56 Tester十点半 阅读(1217) 评论(0) 推荐(0)

Python+Selenium自动化测试之163框架切换
摘要:import time from selenium import webdriver driver = webdriver.Chrome() driver.get("https://email.163.com") time.sleep(2) iframe = driver.find_elements 阅读全文

posted @ 2020-09-08 16:48 Tester十点半 阅读(262) 评论(0) 推荐(0)

导航