摘要:
我们自动化测试的时候,有时不需要图片加载出来,提高浏览器加载速度,从而提高脚本的执行速度。另外在一些网络比较差的环境下,禁用css、图片等加载可以提高访问速度 方法: 1、创建自己的firefoxprofile 关闭所有Filefox浏览窗口—》运行Firefox Manager,点击windows 阅读全文
posted @ 2019-02-27 22:16
CrossPython
阅读(1998)
评论(0)
推荐(0)
摘要:
from: https://blog.csdn.net/chufazhe/article/details/51145834 摘要:在使用selenium和firefox抓取网页指定firefox_profile后遇到问题,生成的日志文件太大直接导致C盘资源耗尽,火狐浏览器直接就停止工作了。 一、环境 阅读全文
posted @ 2019-02-27 22:05
CrossPython
阅读(609)
评论(2)
推荐(0)
摘要:
本文转至 http://www.51testing.com/html/11/n-3711311.html,作者对webdriver在Firefox中设置profile配置项挺熟的,是用Python实现,后续有时间用Java实现一下,先转过来Mark一下 1.selenium 在打开firefox后, 阅读全文
posted @ 2019-02-27 21:34
CrossPython
阅读(565)
评论(0)
推荐(0)
摘要:
folder_extension: menifest.json navigator_change.js manifest.json navigator_change.js reference: http://chromedriver.storage.googleapis.com/index.html 阅读全文
posted @ 2019-02-27 20:47
CrossPython
阅读(258)
评论(0)
推荐(0)
摘要:
https://testerhome.com/topics/9270 阅读全文
posted @ 2019-02-27 15:27
CrossPython
阅读(494)
评论(0)
推荐(0)
摘要:
# 获取当前的页面窗口 first_handle = brower.current_window_handle handles = brower.window_handles for i in handles: if i != first_handle: brower.close() # 关闭当前窗口 brower.switch_to.window(i) br... 阅读全文
posted @ 2019-02-27 12:56
CrossPython
阅读(1024)
评论(0)
推荐(0)
浙公网安备 33010602011771号