everydayrails / rails-4-1-rspec-3-0

Code samples for Everyday Rails Testing with RSpec, Rails 4.1/RSpec 3.0 edition
272 stars 229 forks source link

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

Open JunichiIto opened 8 years ago

JunichiIto commented 8 years ago

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:

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

ruralocity commented 8 years ago

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

sebastian-palma commented 8 years ago

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')