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

Require "uri" in Selenium::Webdriver container module #9827

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

flanger001
Copy link
Contributor

@flanger001 flanger001 commented Sep 14, 2021

Description

This PR adds one line to rb/lib/selenium/webdriver.rb:

require 'uri'

Fixes #9825

Motivation and Context

URI was gemified in Ruby 2.7 ruby/uri@a4a1d4c and therefore must be manually required to use. I opened issue #9825 illustrating the problem I was running into.

NB: I was not sure how to add tests for this, as this was a bugfix that made the library work correctly.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

`URI` was gemified in Ruby 2.7 ruby/uri@a4a1d4c and therefore must be manually required to use.

Fixes SeleniumHQ#9825
@CLAassistant
Copy link

CLAassistant commented Sep 14, 2021

CLA assistant check
All committers have signed the CLA.

@titusfortner
Copy link
Member

Wow, you put a lot of work into a 2 word PR. Really appreciate the contribution, and sorry it took so long for me to see it. Thanks!

@titusfortner titusfortner merged commit 9b1a49f into SeleniumHQ:trunk Sep 22, 2021
@flanger001 flanger001 deleted the rb/include-uri branch September 22, 2021 08:20
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.

Ruby 3.0.1 - uninitialized constant Selenium::WebDriver::ServiceManager::URI
3 participants