2

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

3 Answers3

1

try gem update selenium-webdriver

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

Community
  • 1
  • 1
Ivan Danci
  • 512
  • 5
  • 24
1

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
boulder_ruby
  • 38,457
  • 9
  • 79
  • 100
  • this is not rails, selenium-webdriver is just installed and there is nothing to update. Selenium is not working, perphaps firefox's recents version are not working with selenium – Lázaro Armando Nov 21 '14 at 13:42
  • does your ruby application cache its apps? try updating &/or replacing them. – boulder_ruby Nov 28 '14 at 21:57
  • I JUST INSTALLED, gem update selenium do not work, I do a fresh installation and the problem persist. **Just installed Ruby with just installed selenium.** – Lázaro Armando Dec 10 '14 at 16:14
  • I uninstalled all of the watir & selenium related gems (all versions) first before I did this – boulder_ruby Dec 13 '14 at 20:10
0

solved, after update FIREFOX to newer version