Skip to content

Commit 05c2a5a

Browse files
committed
[rb] no longer allow options parameter in options class constructors
1 parent 8747489 commit 05c2a5a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

rb/lib/selenium/webdriver/common/options.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,10 @@ def set_capabilities
6666

6767
attr_accessor :options
6868

69-
def initialize(options: nil, **opts)
69+
def initialize(**opts)
7070
self.class.set_capabilities
7171

72-
@options = if options
73-
WebDriver.logger.deprecate(":options as keyword for initializing #{self.class}",
74-
"custom values directly in #new constructor",
75-
id: :options_options)
76-
opts.merge(options)
77-
else
78-
opts
79-
end
72+
@options = opts
8073
@options[:browser_name] = self.class::BROWSER
8174
end
8275

0 commit comments

Comments
 (0)