From 604c23b3a5224e9890a80bf5f97e4512d9586ec0 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Tue, 28 Sep 2021 21:12:07 -0500 Subject: [PATCH] [rb] add web_socket_url to list of W3C Options --- rb/CHANGES | 1 + rb/lib/selenium/webdriver/common/options.rb | 3 ++- rb/lib/selenium/webdriver/remote/capabilities.rb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rb/CHANGES b/rb/CHANGES index 63d42b93086f8..809b18838c0d9 100644 --- a/rb/CHANGES +++ b/rb/CHANGES @@ -16,6 +16,7 @@ Ruby: * Moved New Window functionality to TargetLocator#new_window to be used with Driver#switch_to * Deprecated using Manager#new_window * Changed order of logging output (#9850) + * Added support for web_socket_url capability Chromium: * Implemented casting functionality diff --git a/rb/lib/selenium/webdriver/common/options.rb b/rb/lib/selenium/webdriver/common/options.rb index 46fb6096bd134..ecfb642b0b061 100644 --- a/rb/lib/selenium/webdriver/common/options.rb +++ b/rb/lib/selenium/webdriver/common/options.rb @@ -21,7 +21,8 @@ module Selenium module WebDriver class Options W3C_OPTIONS = %i[browser_name browser_version platform_name accept_insecure_certs page_load_strategy proxy - set_window_rect timeouts unhandled_prompt_behavior strict_file_interactability].freeze + set_window_rect timeouts unhandled_prompt_behavior strict_file_interactability + web_socket_url].freeze class << self attr_reader :driver_path diff --git a/rb/lib/selenium/webdriver/remote/capabilities.rb b/rb/lib/selenium/webdriver/remote/capabilities.rb index b71555c03ce7c..54171842724c2 100755 --- a/rb/lib/selenium/webdriver/remote/capabilities.rb +++ b/rb/lib/selenium/webdriver/remote/capabilities.rb @@ -39,6 +39,7 @@ class Capabilities :timeouts, :unhandled_prompt_behavior, :strict_file_interactability, + :web_socket_url, # remote-specific (webdriver.remote.sessionid) :remote_session_id