From 49af31ba03bc0297ebaa6aa27f8c9f78c65a0ab9 Mon Sep 17 00:00:00 2001 From: aguspe Date: Fri, 19 Apr 2024 20:40:24 +0200 Subject: [PATCH 1/6] Expand options documentation test and examples --- examples/ruby/spec/drivers/options_spec.rb | 45 +++++++++++++++++++ .../webdriver/drivers/options.en.md | 15 +++---- .../webdriver/drivers/options.ja.md | 16 +++---- .../webdriver/drivers/options.pt-br.md | 15 +++---- .../webdriver/drivers/options.zh-cn.md | 16 +++---- 5 files changed, 65 insertions(+), 42 deletions(-) diff --git a/examples/ruby/spec/drivers/options_spec.rb b/examples/ruby/spec/drivers/options_spec.rb index 41e5477ea225..f743ba78c51a 100644 --- a/examples/ruby/spec/drivers/options_spec.rb +++ b/examples/ruby/spec/drivers/options_spec.rb @@ -45,5 +45,50 @@ driver.get('https://www.google.com') driver.quit end + + it 'accepts untrusted certificates' do + options = Selenium::WebDriver::Options.chrome + options.accept_insecure_certs = true + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://expired.badssl.com/') + driver.quit + end + + it 'sets unhandled prompt behavior' do + options = Selenium::WebDriver::Options.chrome + options.unhandled_prompt_behavior = :accept + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://www.google.com') + driver.quit + end + + it 'sets window rect' do + options = Selenium::WebDriver::Options.firefox + options.set_window_rect = true + + driver = Selenium::WebDriver.for :firefox, options: options + driver.get('https://www.google.com') + driver.quit + end + + it 'sets strict file interactability' do + options = Selenium::WebDriver::Options.chrome + options.strict_file_interactability = true + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://www.google.com') + driver.quit + end + + it 'sets the proxy' do + options = Selenium::WebDriver::Options.chrome + options.proxy = Selenium::WebDriver::Proxy.new(http: 'myproxy.com:8080') + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://www.google.com') + driver.quit + end end end diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.en.md b/website_and_docs/content/documentation/webdriver/drivers/options.en.md index e05b04d9f71c..c3188b4d302b 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.en.md @@ -334,7 +334,7 @@ effect for the entire session. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -463,7 +463,7 @@ user prompt encounters at the remote-end. This is defined by {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -488,7 +488,7 @@ Indicates whether the remote end supports all of the [resizing and repositioning {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -516,7 +516,7 @@ when using _Element Send Keys_ with hidden file upload controls. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -603,12 +603,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} - -proxy = Selenium::WebDriver::Proxy.new(http: '') -cap = Selenium::WebDriver::Remote::Capabilities.chrome(proxy: proxy) - -driver = Selenium::WebDriver.for(:chrome, capabilities: cap) -driver.get('http://google.com') +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md index 30c7f848a024..7c5d9d4b07a4 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md @@ -322,7 +322,7 @@ fun main() { {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -442,7 +442,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -468,7 +468,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -495,7 +495,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -577,13 +577,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} -# this code was written with Selenium 4 - -proxy = Selenium::WebDriver::Proxy.new(http: '') -cap = Selenium::WebDriver::Remote::Capabilities.chrome(proxy: proxy) - -driver = Selenium::WebDriver.for(:chrome, capabilities: cap) -driver.get('http://google.com') +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md index 12d7d827e2ed..bcdddc883ea9 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md @@ -345,7 +345,7 @@ effect for the entire session. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -476,7 +476,7 @@ user prompt encounters at the remote-end. This is defined by {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -502,7 +502,7 @@ Indicates whether the remote end supports all of the [resizing and repositioning {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -531,7 +531,7 @@ when using _Element Send Keys_ with hidden file upload controls. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -618,12 +618,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} - -proxy = Selenium::WebDriver::Proxy.new(http: '') -cap = Selenium::WebDriver::Remote::Capabilities.chrome(proxy: proxy) - -driver = Selenium::WebDriver.for(:chrome, capabilities: cap) -driver.get('http://google.com') +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md index f764e2ae124b..e27baafef0dc 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md @@ -337,7 +337,7 @@ fun main() { {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -465,7 +465,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -492,7 +492,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -521,7 +521,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -606,13 +606,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} -# this code was written with Selenium 4 - -proxy = Selenium::WebDriver::Proxy.new(http: '') -cap = Selenium::WebDriver::Remote::Capabilities.chrome(proxy: proxy) - -driver = Selenium::WebDriver.for(:chrome, capabilities: cap) -driver.get('http://google.com') +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); From 919d47c6afc96f546176d9ec0d426902f984d0bd Mon Sep 17 00:00:00 2001 From: aguspe Date: Wed, 24 Apr 2024 23:13:40 +0200 Subject: [PATCH 2/6] Update timeouts examples --- examples/ruby/spec/drivers/options_spec.rb | 27 +++++++++++++++++++ .../webdriver/drivers/options.en.md | 6 ++--- .../webdriver/drivers/options.ja.md | 6 ++--- .../webdriver/drivers/options.pt-br.md | 6 ++--- .../webdriver/drivers/options.zh-cn.md | 6 ++--- 5 files changed, 39 insertions(+), 12 deletions(-) diff --git a/examples/ruby/spec/drivers/options_spec.rb b/examples/ruby/spec/drivers/options_spec.rb index f743ba78c51a..922807beff95 100644 --- a/examples/ruby/spec/drivers/options_spec.rb +++ b/examples/ruby/spec/drivers/options_spec.rb @@ -90,5 +90,32 @@ driver.get('https://www.google.com') driver.quit end + + it 'sets the implicit timeout' do + options = Selenium::WebDriver::Options.chrome + options.timeouts = {implicit: 1} + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://www.google.com') + driver.quit + end + + it 'sets the page load timeout' do + options = Selenium::WebDriver::Options.chrome + options.timeouts = {page_load: 400_000} + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://www.google.com') + driver.quit + end + + it 'sets the script timeout' do + options = Selenium::WebDriver::Options.chrome + options.timeouts = {script: 40_000} + + driver = Selenium::WebDriver.for :chrome, options: options + driver.get('https://www.google.com') + driver.quit + end end end diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.en.md b/website_and_docs/content/documentation/webdriver/drivers/options.en.md index c3188b4d302b..2fb7643fd882 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.en.md @@ -369,7 +369,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -398,7 +398,7 @@ _TimeoutException_. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -425,7 +425,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md index 7c5d9d4b07a4..1f059946d865 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md @@ -354,7 +354,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -380,7 +380,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -405,7 +405,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md index bcdddc883ea9..6026578506f9 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md @@ -381,7 +381,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -410,7 +410,7 @@ _TimeoutException_. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -437,7 +437,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md index e27baafef0dc..54d4e6c8816b 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md @@ -372,7 +372,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -400,7 +400,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -426,7 +426,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} From af36eaa1ed80eb58d16425e184309dbe8904e18d Mon Sep 17 00:00:00 2001 From: aguspe Date: Wed, 24 Apr 2024 23:21:54 +0200 Subject: [PATCH 3/6] Update all navigations --- examples/ruby/spec/drivers/options_spec.rb | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/examples/ruby/spec/drivers/options_spec.rb b/examples/ruby/spec/drivers/options_spec.rb index 922807beff95..8917538eabd4 100644 --- a/examples/ruby/spec/drivers/options_spec.rb +++ b/examples/ruby/spec/drivers/options_spec.rb @@ -5,13 +5,14 @@ RSpec.describe 'Chrome' do describe 'Driver Options' do let(:chrome_location) { driver_finder && ENV.fetch('CHROME_BIN', nil) } + let(:url) { 'https://www.selenium.dev/selenium/web/' } it 'page load strategy normal' do options = Selenium::WebDriver::Options.chrome options.page_load_strategy = :normal driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -20,7 +21,7 @@ options.page_load_strategy = :eager driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -29,7 +30,7 @@ options.page_load_strategy = :none driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -42,7 +43,7 @@ cloud_options[:name] = my_test_name options.add_option('cloud:options', cloud_options) driver = Selenium::WebDriver.for :remote, capabilities: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -51,7 +52,7 @@ options.accept_insecure_certs = true driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://expired.badssl.com/') + driver.get(url) driver.quit end @@ -60,7 +61,7 @@ options.unhandled_prompt_behavior = :accept driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -69,7 +70,7 @@ options.set_window_rect = true driver = Selenium::WebDriver.for :firefox, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -78,7 +79,7 @@ options.strict_file_interactability = true driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -87,7 +88,7 @@ options.proxy = Selenium::WebDriver::Proxy.new(http: 'myproxy.com:8080') driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -96,7 +97,7 @@ options.timeouts = {implicit: 1} driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -105,7 +106,7 @@ options.timeouts = {page_load: 400_000} driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end @@ -114,7 +115,7 @@ options.timeouts = {script: 40_000} driver = Selenium::WebDriver.for :chrome, options: options - driver.get('https://www.google.com') + driver.get(url) driver.quit end end From 4ce8459d7e7e841273a8b6d2117da01c6add0e0d Mon Sep 17 00:00:00 2001 From: aguspe Date: Thu, 25 Apr 2024 09:55:07 +0200 Subject: [PATCH 4/6] Update options after updating the tests --- .../documentation/webdriver/drivers/options.en.md | 14 +++++++------- .../documentation/webdriver/drivers/options.ja.md | 14 +++++++------- .../webdriver/drivers/options.pt-br.md | 14 +++++++------- .../webdriver/drivers/options.zh-cn.md | 14 +++++++------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.en.md b/website_and_docs/content/documentation/webdriver/drivers/options.en.md index 2fb7643fd882..97fe203f8a3f 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.en.md @@ -40,7 +40,7 @@ Browser name is set by default when using an Options class instance. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L10" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L11" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -67,7 +67,7 @@ it will be automatically downloaded by [Selenium Manager]({{< ref "../../seleniu {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L35" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L40" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -139,7 +139,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L10-L11">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L11-L12">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L28-L34">}} @@ -196,7 +196,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L19-L20">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L20-L21">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L8-L14">}} @@ -252,7 +252,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L28-L29">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L29-L30">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L18-L24">}} @@ -296,7 +296,7 @@ setting `platformName` sets the OS at the remote-end. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L38" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -334,7 +334,7 @@ effect for the entire session. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L51-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md index 1f059946d865..ab85230850fa 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md @@ -40,7 +40,7 @@ Browser name is set by default when using an Options class instance. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L10" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L11" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -68,7 +68,7 @@ it will be automatically downloaded by [Selenium Manager]({{< ref "../../seleniu {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L35" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L40" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -137,7 +137,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L10-L11">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L11-L12">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L28-L34">}} @@ -193,7 +193,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L19-L20">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L20-L21">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L8-L14">}} @@ -248,7 +248,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L28-L29">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L29-L30">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L18-L24">}} @@ -290,7 +290,7 @@ fun main() { {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L38" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -322,7 +322,7 @@ fun main() { {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L51-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md index 6026578506f9..6c5cb021f961 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md @@ -52,7 +52,7 @@ extremidade remota, a criação da sessão falhará. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L10" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L11" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -80,7 +80,7 @@ tiver apenas 80 instalados, a criação da sessão falhará. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L35" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L40" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -152,7 +152,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L10-L11">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L11-L12">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L28-L34">}} @@ -208,7 +208,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L19-L20">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L20-L21">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L8-L14">}} @@ -263,7 +263,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L28-L29">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L29-L30">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L18-L24">}} @@ -307,7 +307,7 @@ setting `platformName` sets the OS at the remote-end. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L38" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -345,7 +345,7 @@ effect for the entire session. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L51-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md index 54d4e6c8816b..fae4c8ede20e 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md @@ -43,7 +43,7 @@ Browser name is set by default when using an Options class instance. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L10" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L11" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -71,7 +71,7 @@ it will be automatically downloaded by [Selenium Manager]({{< ref "../../seleniu {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L35" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L40" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -147,7 +147,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L10-L11">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L11-L12">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L28-L34">}} @@ -203,7 +203,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L19-L20">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L20-L21">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L8-L14">}} @@ -258,7 +258,7 @@ namespace pageLoadStrategy { } {{< /tab >}} {{< tab header="Ruby" text=true >}} -{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L28-L29">}} +{{< gh-codeblock path="/examples/ruby/spec/drivers/options_spec.rb#L29-L30">}} {{< /tab >}} {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/capabilities/pageLoading.spec.js#L18-L24">}} @@ -302,7 +302,7 @@ fun main() { {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L38" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L39" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -337,7 +337,7 @@ fun main() { {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L50-L51" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L51-L52" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} From 5bc74d7d36e134826f25cb73c106f0ecc9cbd414 Mon Sep 17 00:00:00 2001 From: aguspe Date: Thu, 25 Apr 2024 14:48:44 +0200 Subject: [PATCH 5/6] Update options after updating the tests --- .../documentation/webdriver/drivers/options.en.md | 14 +++++++------- .../documentation/webdriver/drivers/options.ja.md | 14 +++++++------- .../webdriver/drivers/options.pt-br.md | 14 +++++++------- .../webdriver/drivers/options.zh-cn.md | 14 +++++++------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.en.md b/website_and_docs/content/documentation/webdriver/drivers/options.en.md index 97fe203f8a3f..5aef14027bf7 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.en.md @@ -369,7 +369,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L114-L115" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -398,7 +398,7 @@ _TimeoutException_. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L105-L106" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -425,7 +425,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L96-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -463,7 +463,7 @@ user prompt encounters at the remote-end. This is defined by {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L60-L61" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -488,7 +488,7 @@ Indicates whether the remote end supports all of the [resizing and repositioning {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L69-L70" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -516,7 +516,7 @@ when using _Element Send Keys_ with hidden file upload controls. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L78-L79" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -603,7 +603,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L87-L88" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md index ab85230850fa..e5fe6df20373 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md @@ -354,7 +354,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L114-L115" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -380,7 +380,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L105-L106" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -405,7 +405,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L96-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -442,7 +442,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L60-L61" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -468,7 +468,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L69-L70" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -495,7 +495,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L78-L79" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -577,7 +577,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L87-L88" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md index 6c5cb021f961..83879902f62b 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md @@ -381,7 +381,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L114-L115" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -410,7 +410,7 @@ _TimeoutException_. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L105-L106" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -437,7 +437,7 @@ is imposed when a new session is created by WebDriver. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L96-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -476,7 +476,7 @@ user prompt encounters at the remote-end. This is defined by {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L60-L61" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -502,7 +502,7 @@ Indicates whether the remote end supports all of the [resizing and repositioning {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L69-L70" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -531,7 +531,7 @@ when using _Element Send Keys_ with hidden file upload controls. {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L78-L79" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -618,7 +618,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L87-L88" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md index fae4c8ede20e..425ab2d8b3d2 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md @@ -372,7 +372,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L113-L114" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L114-L115" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -400,7 +400,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L104-L105" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L105-L106" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -426,7 +426,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L95-L96" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L96-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -465,7 +465,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L59-L60" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L60-L61" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -492,7 +492,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L68-L69" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L69-L70" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -521,7 +521,7 @@ WebDriver创建新会话时, {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L77-L78" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L78-L79" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -606,7 +606,7 @@ driver.Navigate().GoToUrl("https://www.selenium.dev/"); } {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L86-L87" >}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L87-L88" >}} {{< /tab >}} {{< tab header="JavaScript" >}} let webdriver = require('selenium-webdriver'); From 165749a8bc6e98fb01abd8c48622f19653212db6 Mon Sep 17 00:00:00 2001 From: aguspe Date: Thu, 25 Apr 2024 14:56:00 +0200 Subject: [PATCH 6/6] Fix documentation bug --- .../webdriver/troubleshooting/upgrade_to_selenium_4.en.md | 2 +- .../webdriver/troubleshooting/upgrade_to_selenium_4.ja.md | 2 +- .../webdriver/troubleshooting/upgrade_to_selenium_4.pt-br.md | 2 +- .../webdriver/troubleshooting/upgrade_to_selenium_4.zh-cn.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.en.md b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.en.md index 3ab0e80b8fb5..ea963c317032 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.en.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.en.md @@ -135,7 +135,7 @@ browserOptions.AddAdditionalOption("cloud:options", cloudOptions); var driver = new RemoteWebDriver(new Uri(CloudURL), browserOptions); {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L46">}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L47">}} {{< /tab >}} {{< tab header="Python" >}} from selenium.webdriver.firefox.options import Options as FirefoxOptions diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.ja.md b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.ja.md index c8e59ce20f8d..321465fe75e2 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.ja.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.ja.md @@ -129,7 +129,7 @@ browserOptions.AddAdditionalOption("cloud:options", cloudOptions); var driver = new RemoteWebDriver(new Uri(CloudURL), browserOptions); {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L46">}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L47">}} {{< /tab >}} {{< tab header="Python" >}} from selenium.webdriver.firefox.options import Options as FirefoxOptions diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.pt-br.md b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.pt-br.md index 73f7e857a0ae..d203edd9c0eb 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.pt-br.md @@ -132,7 +132,7 @@ browserOptions.AddAdditionalOption("cloud:options", cloudOptions); var driver = new RemoteWebDriver(new Uri(CloudURL), browserOptions); {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L46">}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L47">}} {{< /tab >}} {{< tab header="Python" >}} from selenium.webdriver.firefox.options import Options as FirefoxOptions diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.zh-cn.md b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.zh-cn.md index 26f656e776fc..c4a490ebbaa7 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/upgrade_to_selenium_4.zh-cn.md @@ -143,7 +143,7 @@ browserOptions.AddAdditionalOption("cloud: options", cloudOptions); var driver = new RemoteWebDriver(new Uri(CloudURL), browserOptions); {{< /tab >}} {{< tab header="Ruby" >}} -{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L37-L46">}} +{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L38-L47">}} {{< /tab >}} {{< tab header="Python" >}} from selenium.webdriver.firefox.options import Options as FirefoxOptions