I tried to run some basic automated tests using ruby selenium webdriver. The same code works perfectly on my home computer, but fails on my work computer which is behind a p
Usage of selenium-webdriver behind proxy has browser related specific. In short, you need to find a way of passing proxy settings to the browser instance created by webdriver.
Below is a code that works with Firefox.
#Firefox keeps proxy settings in profile.
profile = Selenium::WebDriver::Firefox::Profile.new
profile.proxy = Selenium::WebDriver::Proxy.new( :http => "192.168.1.1:3128")
driver = Selenium::WebDriver.for :firefox, :profile => profile
driver.navigate.to "http://google.com"
puts driver.title
driver.quit