簡體   English   中英

watir webdriver瀏覽器將無法轉到url

[英]watir webdriver browser will not goto url

當我運行.rb文件時,瀏覽器會打開,但不會轉到所需的URL。 屏幕保持空白。 當我在終端中按下控件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.xxx:xxxx) (Selenium::WebDriver::Error::WebDriverError)

我使用簡單的代碼進行測試,但仍然沒有運氣:

require "rubygems"
require "watir-webdriver"

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

Selenium似乎對此有一個未解決的問題: https : //github.com/seleniumhq/selenium/issues/835

最常提出的解決方案:
降級到Firefox 45

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM