码迷,mamicode.com
首页 >  
搜索关键字:Selenium    ( 6249个结果
Python+Selenium练习(五)-利用partial link text定位元素
partial link text 和 link text 有些相似,partial link text就是选择这个元素的link text中的一部分字段。 练习场景: # coding=utf-8 from selenium import webdriver driver = webdriver. ...
分类:编程语言   时间:2020-04-02 17:41:48    阅读次数:88
Python+Selenium练习(六)-利用class name定位元素
很多时候,我们查看元素的XPath信息,发现没有可以用来定位的id信息,这个时候我们就要考虑其他的可用的来定位元素。 练习场景:百度首页的搜索输入框 脚本如下: # coding=utf-8 from selenium import webdriver driver = webdriver.Chro ...
分类:编程语言   时间:2020-04-02 17:36:25    阅读次数:95
selenium+python学习——webdriver总结
1、学习自动化前,需先了解html和python的基础语法 2、安装环境 1)安装python+pycharm安装方法 可参考:微信公众号:软件安装管家(其中含有安装包以及安装方法) 2)安装selenium 可参考博文:https://www.cnblogs.com/yuer02/p/119056 ...
分类:编程语言   时间:2020-04-02 17:34:42    阅读次数:79
selenium学习——文件上传
1、上传 学习链接: https://www.cnblogs.com/yoyoketang/p/6445270.html input标签可以借助send_keys()操作来实现文件上传 <<input type="file" name="file" style="position: absolute ...
分类:Web程序   时间:2020-04-02 16:04:56    阅读次数:63
python+selenium之元素识别二
一、元素识别 1、submit 1)提交表单 2)解决有些大表单提交按钮在浏览器下方固定隐藏 driver.find_element(By.XPATH, '//form[@target="hiddenwin"]').submit() 2、size 获取元素的尺寸 size = driver.find ...
分类:编程语言   时间:2020-04-02 00:59:12    阅读次数:84
selenium.common.exceptions.WebDriverException: Message: unknown Error: cannot find Chrome binary
jenkins集成web_UI自动化脚本,发送的html报告中显示: selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary 如下图: 使用Chrome浏览器时, ...
分类:Web程序   时间:2020-04-01 23:38:38    阅读次数:196
python爬虫-什么时候选择selenium框架框架?
不同的网站选择不通的技术策略和不同的框架组合。selenium框架: 我把这个框架取了一个名字叫:“无法阻挡爬虫蜘蛛侠”
分类:编程语言   时间:2020-04-01 19:27:21    阅读次数:104
selenium 定位标签
from selenium import webdriverfrom lxml import etreeimport time a = webdriver.Chrome(executable_path=r'D:\python学习\其他\chromedriver.exe')url = 'https:/ ...
分类:其他好文   时间:2020-04-01 14:41:25    阅读次数:64
selenium 无头浏览器
from selenium import webdriverfrom selenium.webdriver.chrome.options import Options # 创建一个参数对象,来控制 chrome 浏览器无界面打开chrome_options = Options()chrome_opt ...
分类:其他好文   时间:2020-04-01 14:37:03    阅读次数:289
selenium 隐藏访问
from selenium import webdriverfrom selenium.webdriver import ChromeOptions options = ChromeOptions()options.add_experimental_option('excludeSwitches', ...
分类:其他好文   时间:2020-04-01 14:35:44    阅读次数:61
6249条   上一页 1 ... 62 63 64 65 66 ... 625 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!