Skip to content

Commit f77b6e5

Browse files
authored
[rb] Fix an example of WebDriver::Options (#9990)
`:options` as a parameter for driver initialization is deprecated now.
1 parent 0c10993 commit f77b6e5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rb/lib/selenium/webdriver/chrome/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Options < WebDriver::Options
5050
#
5151
# @example
5252
# options = Selenium::WebDriver::Chrome::Options.new(args: ['start-maximized', 'user-data-dir=/tmp/temp_profile'])
53-
# driver = Selenium::WebDriver.for(:chrome, options: options)
53+
# driver = Selenium::WebDriver.for(:chrome, capabilities: options)
5454
#
5555
# @param [Profile] :profile An instance of a Chrome::Profile Class
5656
# @param [Array] :encoded_extensions List of extensions that do not need to be Base64 encoded

rb/lib/selenium/webdriver/firefox/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Options < WebDriver::Options
4444
#
4545
# @example
4646
# options = Selenium::WebDriver::Firefox::Options.new(args: ['--host=127.0.0.1'])
47-
# driver = Selenium::WebDriver.for :firefox, options: options
47+
# driver = Selenium::WebDriver.for :firefox, capabilities: options
4848
#
4949
# @param [Hash] opts the pre-defined options to create the Firefox::Options with
5050
# @option opts [String] :binary Path to the Firefox executable to use

rb/lib/selenium/webdriver/ie/options.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ class Options < WebDriver::Options
5252
#
5353
# @example
5454
# options = Selenium::WebDriver::IE::Options.new(args: ['--host=127.0.0.1'])
55-
# driver = Selenium::WebDriver.for(:ie, options: options)
55+
# driver = Selenium::WebDriver.for(:ie, capabilities: options)
5656
#
5757
# @example
5858
# options = Selenium::WebDriver::IE::Options.new
5959
# options.element_scroll_behavior = Selenium::WebDriver::IE::Options::SCROLL_BOTTOM
60-
# driver = Selenium::WebDriver.for(:ie, options: options)
60+
# driver = Selenium::WebDriver.for(:ie, capabilities: options)
6161
#
6262
# @param [Hash] opts the pre-defined options
6363
# @option opts [Array<String>] args

0 commit comments

Comments
 (0)