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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -