摘要:
1) from selenium import webdriver 加载模块 2) b = webdriver.Friefox() 打开浏览器 3) b.get(‘http://xxxxxxx’) 打开xxx网页 4) Ele = b.find_element_by_id(‘xxx’) 定位搜索框元 阅读全文
posted @ 2019-04-09 17:25
一个也不能少
阅读(7024)
评论(0)
推荐(0)
摘要:
1)from selenium.webdriver.common.action_chains import ActionChains 导入该模块 2)ActionChains(driver) :用于生成模拟用户行为 3)Perfrom() :执行储存行为 form selenium.webdrive 阅读全文
posted @ 2019-04-09 16:58
一个也不能少
阅读(5636)
评论(0)
推荐(0)
摘要:
1、Xpath元素定位 1)ele = b.find_element_by_xpath(‘/html/body/from/input[1]’) 2)Ele = b.find_element_by_xpath(‘//input[2]’) 定位第二个input 3)Ele = b.find_elemen 阅读全文
posted @ 2019-04-09 16:55
一个也不能少
阅读(2706)
评论(0)
推荐(0)
摘要:
1、使用selenium中的webdriver模块对浏览器进行操作 1)from selenium import webdriver 加载模块 2)b = webdriver.Friefox() 打开浏览器 3)b.get(‘http://www.baidu.com’) 打开百度网页 4)b.tit 阅读全文
posted @ 2019-04-09 16:53
一个也不能少
阅读(1320)
评论(0)
推荐(0)

浙公网安备 33010602011771号