selenium
bluelikk
这个作者很懒,什么都没留下…
展开
-
Selenium下Chrome配置
Selenium下Chrome配置例子: 设置无界面模式浏览器启动chrome_options = webdriver.ChromeOptions()chrome_options.add_argument('--headless')driver = webdriver.Chrome(chrome_options=chrome_options)地址:https://peter.sh/experiments/chromium-command-line-switches/chrome_o.原创 2021-07-15 14:58:16 · 765 阅读 · 0 评论 -
requests/selenium使用IP代理
#coding=utf-8'''接口请求时做IP代理'''import requests#请求地址targetUrl = "https://www.cnblogs.com/"#代理服务器proxyHost = "xxx.xxx.xxx.xx"proxyPort = "xxxx"proxyMeta = "http://%(host)s:%(port)s" % { "host" : proxyHost, "port" : proxyPort,}#pip in.原创 2021-07-12 17:31:53 · 269 阅读 · 0 评论 -
UI自动化selenium测试面试题及答案大全
https://blog.csdn.net/qq_33299873/article/details/89412776转载 2020-09-25 17:04:49 · 1382 阅读 · 0 评论 -
selenium调用IE浏览器
1.下载IE驱动查看selenium版本号:pip show seleniumName: seleniumVersion: 3.141.0Summary: Python bindings for SeleniumHome-page: https://github.com/SeleniumHQ/selenium/下载对应版本号的IE驱动,https://selenium-release.storage.googleapis.com/index.html2.将下载好的驱动加入环境变量原创 2020-06-11 16:41:55 · 4028 阅读 · 0 评论 -
使用python3.6 selenium启动chromedriver
chromedriver驱动下载地址:https://sites.google.com/a/chromium.org/chromedriver/downloads(需要翻墙),也可以到http://chromedriver.storage.googleapis.com/index.html 下载 在地址栏中输入chrome://version可以查看到更加详细的版本情况附chrome...原创 2018-10-23 17:36:53 · 707 阅读 · 0 评论