Skip to content

Instantly share code, notes, and snippets.

@carlosipe
Forked from EmmanuelOga/capyseleniumproxy.rb
Created August 9, 2013 00:36
Show Gist options
  • Save carlosipe/6190194 to your computer and use it in GitHub Desktop.
Save carlosipe/6190194 to your computer and use it in GitHub Desktop.
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