Firefox没有加载网址

时间:2016-08-02 13:38:20

标签: watir watir-webdriver

require 'watir-webdriver'

b=Watir::Browser.new 

b.goto 'www.google.com'

我正在编写上面的代码在firefox中打开google.com,但问题是,即使在打开firefox浏览器之后控制也没有离开第二行,后来它抛出了下面给出的错误,任何人都可以建议我如何克服这个问题?

/webdriver/firefox/launcher.rb:90:in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError)

1 个答案:

答案 0 :(得分:0)

这会偶尔弹出,看起来最好的选择之一就是更新selenium-webdriver gem。这对我有用。

gem update selenium-webdriver

我目前使用selenium-webdriver(2.53.4)运行,没有任何问题。

相关问题