实例化水豚浏览器并设置代理 [英] 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
推荐答案
page.driver.browser.set_proxy :host => 'localhost', :port => 8888
这篇关于实例化水豚浏览器并设置代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文