Reputation: 23
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
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:
bundle update selenium-webdriver
or gem update selenium-webdriver
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
Reputation: 521
try gem update selenium-webdriver
similar question here Can not use variable in IRB after var = Watir::Browser.start 'url'
Upvotes: 1