Skip to content

Instantly share code, notes, and snippets.

@EmmanuelOga
Created July 7, 2012 04:32
Show Gist options
  • Save EmmanuelOga/3064657 to your computer and use it in GitHub Desktop.
Save EmmanuelOga/3064657 to your computer and use it in GitHub Desktop.
capybara w/selenium and proxy config
Capybara.register_driver :selenium do |app|
profile = Selenium::WebDriver::Firefox::Profile.new
profile["network.proxy.type"] = 1 # manual proxy config
profile["network.proxy.http"] = "localhost"
profile["network.proxy.http_port"] = 8080
Capybara::Selenium::Driver.new(app, :profile => profile)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment