简体   繁体   中英

watir webdriver browser will not goto url

When I run the .rb file, the browser opens, but doesn't go to the desired url. Screen stays blank white. When I hit control c in the terminal to quit, I get:

/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.xxx:xxxx) (Selenium::WebDriver::Error::WebDriverError)

I used simple code to test and still no luck:

require "rubygems"
require "watir-webdriver"

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

There seems to be an open issue on this for Selenium: https://github.com/seleniumhq/selenium/issues/835

Most often proposed solution:
Downgrade to Firefox 45 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM