You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not use the existing solution in the readme, and even the keyword :desired_capabilities when declaring a new Capybara::Selenium::Driver throws an error. My solution is below, which works for automating Chrome on Heroku. I had to set GOOGLE_CHROME_SHIM to "/usr/bin/google-chrome" manually in Heroku.
Capybara.register_driver :heroku_chrome do |app|
Capybara::Selenium::Driver.new(
app,
browser: :chrome,
options: Selenium::WebDriver::Chrome::Options.new(
binary: ENV.fetch('GOOGLE_CHROME_SHIM')
)
)
end
The text was updated successfully, but these errors were encountered:
I could not use the existing solution in the readme, and even the keyword :desired_capabilities when declaring a new Capybara::Selenium::Driver throws an error. My solution is below, which works for automating Chrome on Heroku. I had to set GOOGLE_CHROME_SHIM to "/usr/bin/google-chrome" manually in Heroku.
The text was updated successfully, but these errors were encountered: