Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Use relative paths for commands to support Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje authored and twalpole committed May 7, 2019
1 parent 69f0140 commit e43bb35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/chrome/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/safari/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e43bb35

Please sign in to comment.