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

Fix missing constant when using :selenium_chrome #2173

Merged
merged 1 commit into from Mar 30, 2019

Conversation

jeffclemens-ab
Copy link
Contributor

In versions 3.14+, this "uninitialized constant Selenium" error occurs when using the :selenium_chrome driver:

     2.2) Failure/Error:
            browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
              # Workaround https://bugs.chromium.org/p/chromedriver/issues/detail?id=2650&q=load&sort=-id&colspec=ID%20Status%20Pri%20Owner%20Summary
              opts.args << '--disable-site-isolation-trials'
            end

          NameError:
            uninitialized constant Selenium
          # /Library/Ruby/Gems/2.3.0/gems/capybara-3.14.0/lib/capybara.rb:547:in `block in <top (required)>'

I believe that this error was introduced by this commit: b28912f#diff-f6aa6c79750a9a5bd39ee17f3ade2974

@twalpole
Copy link
Member

Thanks for this - I would guess most people already have require 'selenium-webdriver' in their projects so this hasn't shown up before.

@twalpole twalpole merged commit 027789e into teamcapybara:master Mar 30, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants