【问题标题】:watir webdriver browser will not goto urlwatir webdriver 浏览器不会转到 url
【发布时间】:2017-03-13 03:34:45
【问题描述】:

当我运行 .rb 文件时,浏览器会打开,但不会转到所需的 url。屏幕保持空白。当我在终端中点击 control c 退出时,我得到:

/Users/xxx/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.49.0/lib/selenium/webdriver/firefox/launcher.rb:90:in 'connect_until_stable': unable to obtain stable firefox connection in 60 seconds (xxx.x.x.x:xxxx) (Selenium::WebDriver::Error::WebDriverError)

我用简单的代码测试了下还是不行:

require "rubygems"
require "watir-webdriver"

browser = Watir::Browser.new :firefox #:profile => profile
browser.goto('http://google.com')

【问题讨论】:

  • 您是否尝试过降级到 Casper 提到的 fireFox 45?
  • @AnurajR 这正是我所做的,并且奏效了。

标签: ruby selenium firefox browser watir-webdriver


【解决方案1】:

Selenium 似乎有一个未解决的问题:https://github.com/seleniumhq/selenium/issues/835

最常提出的解决方案:
降级到 Firefox 45

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-11-23
    • 1970-01-01
    • 1970-01-01
    • 2015-06-09
    • 2011-09-29
    • 2017-01-04
    • 2012-03-21
    • 1970-01-01
    相关资源
    最近更新 更多