Skip to content

Commit

Permalink
[rb] Replace the :capabilities paramater with :options in API examples (
Browse files Browse the repository at this point in the history
#12626)

The :capabilities parameter for webdriver classes is deprecated
but still used in API example docs.

This change replaces the :capabilities parameter with :options.
  • Loading branch information
tatsuyafw authored Aug 29, 2023
1 parent 739d177 commit 9e7615d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/chromium/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Options < WebDriver::Options
#
# @example
# options = Selenium::WebDriver::Chrome::Options.new(args: ['start-maximized', 'user-data-dir=/tmp/temp_profile'])
# driver = Selenium::WebDriver.for(:chrome, capabilities: options)
# driver = Selenium::WebDriver.for(:chrome, options: options)
#
# @param [Profile] profile An instance of a Chrome::Profile Class
# @param [Hash] opts the pre-defined options to create the Chrome::Options with
Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/firefox/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Options < WebDriver::Options
#
# @example
# options = Selenium::WebDriver::Firefox::Options.new(args: ['--host=127.0.0.1'])
# driver = Selenium::WebDriver.for :firefox, capabilities: options
# driver = Selenium::WebDriver.for :firefox, options: options
#
# @param [Hash] opts the pre-defined options to create the Firefox::Options with
# @option opts [String] :binary Path to the Firefox executable to use
Expand Down
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/ie/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ class Options < WebDriver::Options
#
# @example
# options = Selenium::WebDriver::IE::Options.new(args: ['--host=127.0.0.1'])
# driver = Selenium::WebDriver.for(:ie, capabilities: options)
# driver = Selenium::WebDriver.for(:ie, options: options)
#
# @example
# options = Selenium::WebDriver::IE::Options.new
# options.element_scroll_behavior = Selenium::WebDriver::IE::Options::SCROLL_BOTTOM
# driver = Selenium::WebDriver.for(:ie, capabilities: options)
# driver = Selenium::WebDriver.for(:ie, options: options)
#
# @param [Hash] opts the pre-defined options
# @option opts [Array<String>] args
Expand Down

0 comments on commit 9e7615d

Please sign in to comment.