Why all this trouble to use Firefox/geckodriver on Heroku? I had to use Firefox and not Chrome because getting Chromedriver up with proxy credentials I think is impossible actually (not just extremely difficult).
- Use this Heroku buildpack to install latest Firefox.
Tip: Set your Webdriver path with Selenium::WebDriver::Firefox::Binary.path = "/app/vendor/firefox/firefox"
Tip: To only do this on production branch on Rails.env.production?