diff --git a/rb/lib/selenium/webdriver/chrome/bridge.rb b/rb/lib/selenium/webdriver/chrome/bridge.rb index 13923869f1229..8d7688c04adcb 100644 --- a/rb/lib/selenium/webdriver/chrome/bridge.rb +++ b/rb/lib/selenium/webdriver/chrome/bridge.rb @@ -23,9 +23,9 @@ module Chrome module Bridge COMMANDS = { - get_network_conditions: [:get, '/session/:session_id/chromium/network_conditions'], - set_network_conditions: [:post, '/session/:session_id/chromium/network_conditions'], - send_command: [:post, '/session/:session_id/goog/cdp/execute'] + get_network_conditions: [:get, 'session/:session_id/chromium/network_conditions'], + set_network_conditions: [:post, 'session/:session_id/chromium/network_conditions'], + send_command: [:post, 'session/:session_id/goog/cdp/execute'] }.freeze def commands(command) diff --git a/rb/lib/selenium/webdriver/common/service.rb b/rb/lib/selenium/webdriver/common/service.rb index 85ef3639dc6af..7fec813ac60bd 100644 --- a/rb/lib/selenium/webdriver/common/service.rb +++ b/rb/lib/selenium/webdriver/common/service.rb @@ -165,7 +165,7 @@ def stop_server return if process_exited? connect_to_server do |http| - headers = WebDriver::Remote::Http::Common::DEFAULT_HEADERS.dup + headers = WebDriver::Remote::Http::Common::DEFAULT_HEADERS.dup http.get('/shutdown', headers) end end diff --git a/rb/lib/selenium/webdriver/safari/bridge.rb b/rb/lib/selenium/webdriver/safari/bridge.rb index ff7a9ed326aaf..1d19a94a3cb72 100644 --- a/rb/lib/selenium/webdriver/safari/bridge.rb +++ b/rb/lib/selenium/webdriver/safari/bridge.rb @@ -24,9 +24,9 @@ module Bridge # https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/WebDriverEndpointDoc/Commands/Commands.html COMMANDS = { - get_permissions: [:get, '/session/:session_id/apple/permissions'], - set_permissions: [:post, '/session/:session_id/apple/permissions'], - attach_debugger: [:post, '/session/:session_id/apple/attach_debugger'] + get_permissions: [:get, 'session/:session_id/apple/permissions'], + set_permissions: [:post, 'session/:session_id/apple/permissions'], + attach_debugger: [:post, 'session/:session_id/apple/attach_debugger'] }.freeze def commands(command)