This runs locally (without specifying driver_path), but not on Heroku.
driver_path
Code:
Selenium::WebDriver::Chrome.driver_path = ENV[
This worked for me. I replaced the line below:
Selenium::WebDriver::Chrome.driver_path = ENV['GOOGLE_CHROME_SHIM']
for this:
Selenium::WebDriver::Chrome::Service.driver_path = "/app/.chromedriver/bin/chromedriver"