lib/appium_lib/common/patch.rb in appium_lib-7.0.0 vs lib/appium_lib/common/patch.rb in appium_lib-8.0.0

- old
+ new

@@ -65,10 +65,10 @@ # Invaluable for debugging. def patch_webdriver_bridge Selenium::WebDriver::Remote::Bridge.class_eval do # Code from lib/selenium/webdriver/remote/bridge.rb def raw_execute(command, opts = {}, command_hash = nil) - verb, path = Selenium::WebDriver::Remote::COMMANDS[command] || + verb, path = Selenium::WebDriver::Remote::Bridge::COMMANDS[command] || fail(ArgumentError, "unknown command: #{command.inspect}") path = path.dup path[':session_id'] = @session_id if path.include?(':session_id')