How to set 'Automatic proxy configuration url' by tweaking Firefox preferences using Selenium WebDriver? -
for testing application, i've set 'automatic proxy configuration url' similar 'http://abc.xyz.com/tester/proxy'
in order that, did following:
profile = selenium::webdriver::firefox::profile.new proxy = selenium::webdriver::proxy.new(:http => "abc.xyz.com/tester/proxy") profile.proxy = proxy driver = selenium::webdriver.for :firefox, :profile => profile
but sets 'manual proxy configuration' please me on how set 'automatic proxy configuration url'?
following code sets automatic proxy configuration url:
require 'selenium-webdriver' profile = selenium::webdriver::firefox::profile.new profile['network.proxy.type'] = 2 profile['network.proxy.autoconfig_url'] = "http://abc.xyz.com/tester/proxy" driver = selenium::webdriver.for :firefox, :profile => profile
Comments
Post a Comment