Lázaro Armando
Lázaro Armando

Reputation: 23

watir hang up after new browser

I just installed watir, after exec

require 'watir-webdriver'
browser = Watir::Browser.new :firefox

it just open the browser but keep hang up. Can now write anything more at IRB console beacuse the "browser =" operation do not finish. I'm using firefox 32

Upvotes: 2

Views: 1007

Answers (3)

boulder_ruby
boulder_ruby

Reputation: 39695

Having run into this problem once every year or so, I've basically come to the conclusion that this has to do with a misalignment of three different pieces of software that have to work together: Firefox, the selenium-webdriver and geckodriver. The easy fix for any permutation of this issue should be to:

Other error messages that the above described misalignment can cause:

  • EOFError: end of file reached
  • Selenium::WebDriver::Error::WebDriverError: no sessionId in returned payload

Upvotes: 1

Lázaro Armando
Lázaro Armando

Reputation: 23

solved, after update FIREFOX to newer version

Upvotes: 0

Ivan Danci
Ivan Danci

Reputation: 521

try gem update selenium-webdriver

similar question here Can not use variable in IRB after var = Watir::Browser.start 'url'

Upvotes: 1

Related Questions