码迷,mamicode.com
首页 >  
搜索关键字:python+selenium    ( 767个结果
python+selenium五:多窗口切换与获取句柄
python+selenium五:多窗口切换与获取句柄 from selenium import webdriverfrom selenium.webdriver.common.by import Byimport timedriver = webdriver.Firefox()driver.get ...
分类:编程语言   时间:2018-11-22 02:56:43    阅读次数:187
python+selenium四:iframe查看、定位、切换
python+selenium四:iframe查看、定位、切换 1.查看iframe 1.Top Window:可直接定位 2.iframe#i:说明此元素在iframe上 3.iframe显示为空:(id或name为空) 4.右边这个看到是空的(2层iframe) from selenium im ...
分类:编程语言   时间:2018-11-22 02:49:45    阅读次数:171
python+selenium十:selenium的二次封装
python+selenium十:基于原生selenium的二次封装 from selenium import webdriverfrom selenium.webdriver.support.wait import WebDriverWaitfrom selenium.webdriver.supp ...
分类:编程语言   时间:2018-11-22 02:48:19    阅读次数:161
python+selenium七:下拉框、选项框、select用法
python+selenium七:下拉框、选项框、select用法 from selenium import webdriverfrom selenium.webdriver.common.action_chains import ActionChainsimport timedriver = we ...
分类:编程语言   时间:2018-11-22 02:45:02    阅读次数:461
python+selenium十一:jQuery和js语法、js处理iframe
python+selenium十一:jQuery和js语法、js处理iframe selenium 执行jQuery/js语法 driver.execute_script(jQuery/js) 1、jQuery jQuery只支持css语法: jquery = '$(CSS).val("XXX"); ...
分类:编程语言   时间:2018-11-22 02:44:29    阅读次数:169
python+selenium一:对浏览器的常规操作
# 1.打开Firefox浏览器 from selenium import webdriverdriver = webdriver.Firefox()driver.get("https://www.baidu.com") # 2.打开Ie或Chrome浏览器-->先将驱动文件放到python根目录 ...
分类:编程语言   时间:2018-11-22 02:40:53    阅读次数:165
python+selenium三:鼠标事件与键盘事件
python+selenium三:鼠标事件与键盘事件 # 1、鼠标事件:# 每个模拟事件后需加.perform() 才会执行# context_click() 右击# double_click() 双击# drag_and_drop(source, target) 拖动# move_to_eleme ...
分类:编程语言   时间:2018-11-22 02:40:06    阅读次数:160
python+selenium十二:一个输入框双层input标签
python+selenium十二:一个输入框双层input标签 先点击第一个,再对第二个进行操作,否则操作失败 driver.find_element_by_css_selector(".pwd").click()driver.find_element_by_css_selector(".pass ...
分类:编程语言   时间:2018-11-22 02:38:42    阅读次数:250
python+selenium九:ddt数据驱动
python+selenium九:ddt数据驱动 读取excel内容 import xlrdclass ExcelUtil(): def __init__(self, excelPath, sheetName): #def __init__(self, excelPath, sheetName): ...
分类:编程语言   时间:2018-11-22 02:38:16    阅读次数:225
python+selenium六:隐式等待
python+selenium六:隐式等待 # 隐式等待# 全局生效,只写一次即可(仅当前页面)# 若有页面切换,需sleep等待新页面出现后,再使用此方法# 如:在35秒内,等待操作完成,完成后,不再等待# driver.implicitly_wait(35)from selenium impor ...
分类:编程语言   时间:2018-11-22 02:32:49    阅读次数:298
767条   上一页 1 ... 26 27 28 29 30 ... 77 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!