instantiate capybara browser and set a proxy
问题 Following this documentation I'm trying to instantiate a capybara browser and set a proxy b = Capybara::Driver::Webkit::Browser.new b.set_proxy :host => 'localhost', :port => 8888 Unfortunately the documentation is out of date and I can't find the new right way to do it. I get: NameError: uninitialized constant Capybara::Driver::Webkit::Browser 回答1: page.driver.browser.set_proxy :host => 'localhost', :port => 8888 来源: https://stackoverflow.com/questions/13339993/instantiate-capybara-browser