Skip to content

Commit

Permalink
[rb] define default command_list (fixes #13307)
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 21, 2023
1 parent 9c0738d commit 64d9c87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rb/lib/selenium/webdriver/remote/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def create_session(capabilities)
extend(WebDriver::Edge::Features)
when 'Safari', 'Safari Technology Preview'
extend(WebDriver::Safari::Features)
when 'internet explorer'
extend(WebDriver::IE::Features)
end
end

Expand Down Expand Up @@ -605,8 +607,12 @@ def escaper
@escaper ||= defined?(URI::Parser) ? URI::DEFAULT_PARSER : URI
end

def command_list
COMMANDS
end

def commands(command)
COMMANDS[command]
command_list[command]
end

def unwrap_script_result(arg)
Expand Down

0 comments on commit 64d9c87

Please sign in to comment.