How to config firefox's preference when use webdriver
来源:互联网 发布:dns 端口 编辑:程序博客网 时间:2024/05/19 00:43
from selenium import webdirver
profile.set_preference('network.proxy.type', 1)profile.set_preference('network.proxy.http', '10.226.54.3')profile.set_preference('network.proxy.http_port', 8090)profile.set_preference('network.proxy.ssl', '10.226.54.3')profile.set_preference('network.proxy.ssl_port', 8090)profile.update_preferences()profile = webdriver.FirefoxProfile()
browser = webdriver.Firefox(profile)
References:http://code.google.com/p/selenium/wiki/FirefoxDriver
https://code.google.com/p/selenium/issues/detail?id=2061
http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries
0 0
- How to config firefox's preference when use webdriver
- how to config when use hibernate+sqlserver2005
- When and how to use a ThreadLocal
- How to config languages when build BSP
- How to change WebDriver’s IP address
- how to config and use apt-get
- How to use VB6.0's Event.
- How to Use C's volatile Keyword
- How to Use C's volatile Keyword
- How to Use C's volatile Keyword
- How to use Google's protocol-buffer
- How to use Qt’s QSortFilterProxyModel
- How to use Spring’s WebApplicationInitializer
- How to use .profile when logon by CDE under AIX
- How to aviod new line when use RadAjaxManager
- How to use Deep Learning when you have Limited Data
- How to maintain user.config settings when upgrading
- How to use App.Config in WPF applications
- linkserver的用法
- VMWare虚拟机非正常关闭后无法启动的解决方案
- 指针函数与函数指针的区别
- 剖析为什么在多核多线程程序中要慎用volatile关键字?
- Swift之 ? 和 !
- How to config firefox's preference when use webdriver
- Navicat For Mysql快捷键
- linux gbk 转 utf-8
- ServKit前身phpnow,安装配置,及常见问题
- Echarts 后台交互
- iOS 学习Block小结
- ORACLE存储过程
- 『黑马程序员』第九话<正则表达式>
- AD9通过Excel快速制作原理图符号