Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Selinium Webdriver #147

Open
jessethebuilder opened this issue Nov 2, 2023 · 1 comment
Open

Register Selinium Webdriver #147

jessethebuilder opened this issue Nov 2, 2023 · 1 comment

Comments

@jessethebuilder
Copy link

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
@joshuacronemeyer
Copy link

This helped me. The readme seems out of date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants