This runs locally (without specifying driver_path
), but not on Heroku.
Code:
Selenium::WebDriver::Chrome.driver_path = ENV[
I've been struggling with this one for more than a few hours ....
It has been very frustrating to try to debug on Heroku CI. This ticket has helped me a lot to find a solution.
I had this piece of code in the spec_helper.rb that was causing trouble (for if it helps someone):
config.before(:each, type: :system, js: true) do
driven_by :selenium_chrome_headless
end
It was bypassing all the capybara setup...