Use Watir-WebDriver behind proxy
来源:互联网 发布:尼格罗人种知乎 编辑:程序博客网 时间:2024/05/18 20:50
Good Ruby script#!/usr/bin/ruby def create_firefox_profile profile = Selenium::WebDriver::Firefox::Profile.new profile['network.proxy.ftp'] = "proxy.foo.com" profile['network.proxy.ftp_port'] = 80 profile['network.proxy.http'] = "proxy.foo.com" profile['network.proxy.http_port'] = 80 profile['network.proxy.no_proxies_on'] = "localhost, 127.0.0.1, *.foo.com" profile['network.proxy.ssl'] = "proxy.foo.com" profile['network.proxy.ssl_port'] = 80 profile['network.proxy.type'] = 1 profileend require 'watir-webdriver'ENV['no_proxy'] = '127.0.0.1' b = Watir::Browser.new :firefox, :profile => create_firefox_profileb.goto 'http://www.google.com'
Bad Ruby script#!/usr/bin/ruby require 'watir-webdriver'profile = Selenium::WebDriver::Firefox::Profile.newprofile.proxy = Selenium::WebDriver::Proxy.new :http => 'proxy.foo.com:80', :ssl => 'proxy.foo.com:80'browser = Watir::Browser.new :firefox, :profile => profile
from: http://tech.danbarrese.com/2013/04/08/solved-use-watir-webdriver-behind-proxy/
http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp#parallelizing-your-test-runs
- Use Watir-WebDriver behind proxy
- How to use apt-get behind proxy server (Ubuntu/Debian)
- watir-webdriver和watir区别
- watir-webdriver 在线文档
- watir webdriver使用分享
- watir-webdriver相关知识
- watir&webdriver&QTP比较
- Watir-webdriver使用手册
- maven https behind proxy
- watir-webdriver time out error
- watir-webdriver auto test framework
- Working Behind a Network Proxy
- Working Behind a Network Proxy
- using pip behind a proxy
- Use Proxy
- watir-webdriver 区别于watir的一些方法记录
- 关于watir selenium和webdriver soda cucumber
- watir-webdriver获取某个标签的值
- Linux设备驱动之——I2C总线
- 【美化§美女之冷艳xp主题】
- UNIT 1 Linux内核模块设计
- 在A20上演示老罗的Android硬件抽象层(HAL)概要介绍和学习计划5--关于APP部分
- 题目1384:二维数组中的查找 --九度-online judge
- Use Watir-WebDriver behind proxy
- 编程中第一件事情,就是对象的生命周期管理问题
- 类的构造与析构
- dojo/dom-construct的create方法
- Poj 2800 Joseph's Problem - 找规律
- Android监听器之监听短信发送消息实例
- Linux中的gmtime和localtime,mktime算法
- 试试贴代码
- Servlet获取android POST数据乱码的解决办法