rails-4-1-rspec-3-0 icon indicating copy to clipboard operation
rails-4-1-rspec-3-0 copied to clipboard

selenium-webdriver won't work against Firefox 48 or later

Open JunichiIto opened this issue 9 years ago • 2 comments

One of my readers reported that selenium-webdriver won't work against Firefox 48 or later even if he updates selenium-webdriver.

This problem is related to the issue below:

Firefox driver in 2.53.4 not working with Firefox 48 · Issue #2559 · SeleniumHQ/selenium

Workarounds are:

  • Install 47.0.1 and disable auto-update
  • Or use other web drivers (e.g. Poltergeist) instead of selenium-webdriver

The readers might get confused if they get this problem, so it would be worth to announce it, I think.

JunichiIto avatar Sep 30 '16 22:09 JunichiIto

Thanks @JunichiIto. My recommendation is to go with PhantomJS/Poltergeist. I wrote about how to switch out selenium-webdriver for poltergeist on Everyday Rails.

ruralocity avatar Oct 02 '16 14:10 ruralocity

Also you can use an older version of Firefox, because selenium-webdriver already doesn't work as in previous versions.

Giving the location of the old Firefox version to the binary path you can use it as we've accustomed.

irb(main):001:0> Selenium::WebDriver::Firefox::Binary.path = "/opt/firefox17/firefox"
irb(main):002:0> browser = Capybara::Session.new(:selenium)
irb(main):003:0> browser.visit('http://google.cl')

sebastian-palma avatar Oct 06 '16 12:10 sebastian-palma