Skip to content

Commit

Permalink
[rb] no longer allow options parameter in options class constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 23, 2022
1 parent 8747489 commit 05c2a5a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions rb/lib/selenium/webdriver/common/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,10 @@ def set_capabilities

attr_accessor :options

def initialize(options: nil, **opts)
def initialize(**opts)
self.class.set_capabilities

@options = if options
WebDriver.logger.deprecate(":options as keyword for initializing #{self.class}",
"custom values directly in #new constructor",
id: :options_options)
opts.merge(options)
else
opts
end
@options = opts
@options[:browser_name] = self.class::BROWSER
end

Expand Down

0 comments on commit 05c2a5a

Please sign in to comment.