File tree 2 files changed +4
-4
lines changed
lib/appium_lib_core/common/base
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Bridge < ::Selenium::WebDriver::Remote::Bridge
32
32
#
33
33
# @return [Bridge::MJSONWP, Bridge::W3C]
34
34
#
35
- def self . handshake ( opts )
35
+ def self . handshake ( ** opts )
36
36
desired_capabilities = opts . delete ( :desired_capabilities ) { ::Selenium ::WebDriver ::Remote ::Capabilities . new }
37
37
38
38
if desired_capabilities . is_a? ( Symbol )
@@ -48,9 +48,9 @@ def self.handshake(opts)
48
48
49
49
case bridge . dialect
50
50
when :oss # for MJSONWP
51
- Bridge ::MJSONWP . new ( capabilities , bridge . session_id , opts )
51
+ Bridge ::MJSONWP . new ( capabilities , bridge . session_id , ** opts )
52
52
when :w3c
53
- Bridge ::W3C . new ( capabilities , bridge . session_id , opts )
53
+ Bridge ::W3C . new ( capabilities , bridge . session_id , ** opts )
54
54
else
55
55
raise CoreError , 'cannot understand dialect'
56
56
end
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Driver < ::Selenium::WebDriver::Driver
31
31
32
32
def initialize ( opts = { } )
33
33
listener = opts . delete ( :listener )
34
- @bridge = ::Appium ::Core ::Base ::Bridge . handshake ( opts )
34
+ @bridge = ::Appium ::Core ::Base ::Bridge . handshake ( ** opts )
35
35
if @bridge . dialect == :oss # MJSONWP
36
36
extend ::Selenium ::WebDriver ::DriverExtensions ::HasTouchScreen
37
37
extend ::Selenium ::WebDriver ::DriverExtensions ::HasLocation
You can’t perform that action at this time.
0 commit comments