Skip to content

Commit 3a27748

Browse files
committed
Make sure Safari::Options can be passed through WebDriver.for
1 parent 0fcd051 commit 3a27748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/safari/bridge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Bridge < Remote::Bridge
77

88
def initialize(opts = {})
99
command_timeout = Integer(opts[:timeout] || COMMAND_TIMEOUT)
10-
safari_options = opts.kind_of?(Safari::Options) ? opts : Safari::Options.new(opts)
10+
safari_options = opts.delete(:options) || Safari::Options.new(opts)
1111
capabilities = merge_capabilities(opts, safari_options)
1212

1313
@command_id ||= 0

0 commit comments

Comments
 (0)