From ac70a29c726bc7e232c77b2c1d8615cdd8b145f4 Mon Sep 17 00:00:00 2001 From: Rahul Kant jha Date: Mon, 1 Jun 2026 00:42:01 +0530 Subject: [PATCH 1/3] Fix Python options snippets for Chrome and Edge Replace internal helper usage in the Python basic options examples with explicit webdriver.ChromeOptions() and webdriver.EdgeOptions() so generated docs show runnable user-facing code. Fixes #2621 --- examples/python/tests/browsers/test_chrome.py | 2 +- examples/python/tests/browsers/test_edge.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/tests/browsers/test_chrome.py b/examples/python/tests/browsers/test_chrome.py index d813e8aca815..6c7b6d71fff3 100644 --- a/examples/python/tests/browsers/test_chrome.py +++ b/examples/python/tests/browsers/test_chrome.py @@ -6,7 +6,7 @@ from selenium.webdriver.common.by import By def test_basic_options(): - options = get_default_chrome_options() + options = webdriver.ChromeOptions() driver = webdriver.Chrome(options=options) driver.quit() diff --git a/examples/python/tests/browsers/test_edge.py b/examples/python/tests/browsers/test_edge.py index f4114b84087a..c1aee9bffa59 100644 --- a/examples/python/tests/browsers/test_edge.py +++ b/examples/python/tests/browsers/test_edge.py @@ -6,7 +6,7 @@ from selenium.webdriver.common.by import By def test_basic_options(): - options = get_default_edge_options() + options = webdriver.EdgeOptions() driver = webdriver.Edge(options=options) From 7f64e54ebdb79584602f55d535d6b90fbc3b2ae3 Mon Sep 17 00:00:00 2001 From: Rahul Kant jha Date: Mon, 1 Jun 2026 01:19:17 +0530 Subject: [PATCH 2/3] Fix Edge basic options snippet line range Remove the blank line between options creation and driver initialization so the existing docs range (#L9-L10) renders a runnable Python snippet. Follow-up for #2621 --- examples/python/tests/browsers/test_edge.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/python/tests/browsers/test_edge.py b/examples/python/tests/browsers/test_edge.py index c1aee9bffa59..a789bb523102 100644 --- a/examples/python/tests/browsers/test_edge.py +++ b/examples/python/tests/browsers/test_edge.py @@ -7,7 +7,6 @@ def test_basic_options(): options = webdriver.EdgeOptions() - driver = webdriver.Edge(options=options) driver.quit() From 3046e31dfbe4f9ada51db8791d40b27f4b1c23b0 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Sun, 12 Jul 2026 02:02:47 +0200 Subject: [PATCH 3/3] Show --no-sandbox directly in test_basic_options instead of a hidden helper Replaces get_default_chrome_options()/get_default_edge_options() in test_basic_options with plain webdriver.ChromeOptions()/EdgeOptions() plus an explicit options.add_argument("--no-sandbox") call. This keeps the documented example fully copy-pasteable (no undefined helper function, addressing #2621) while still passing --no-sandbox, which GitHub's ubuntu runners require for Chromium-based browsers to launch. Updates the Python gh-codeblock line references across all four languages (en/ja/pt-br/zh-cn) to match: L9-L11 for the extended Chrome/Edge basic_options snippet, and a uniform +1 shift for every later reference in the Chrome doc since the file gained one line. Co-Authored-By: Claude Sonnet 5 --- examples/python/tests/browsers/test_chrome.py | 1 + examples/python/tests/browsers/test_edge.py | 1 + .../webdriver/browsers/chrome.en.md | 30 +++++++++---------- .../webdriver/browsers/chrome.ja.md | 30 +++++++++---------- .../webdriver/browsers/chrome.pt-br.md | 30 +++++++++---------- .../webdriver/browsers/chrome.zh-cn.md | 30 +++++++++---------- .../webdriver/browsers/edge.en.md | 2 +- .../webdriver/browsers/edge.ja.md | 2 +- .../webdriver/browsers/edge.pt-br.md | 2 +- .../webdriver/browsers/edge.zh-cn.md | 2 +- 10 files changed, 66 insertions(+), 64 deletions(-) diff --git a/examples/python/tests/browsers/test_chrome.py b/examples/python/tests/browsers/test_chrome.py index 6c7b6d71fff3..d19d01b771d8 100644 --- a/examples/python/tests/browsers/test_chrome.py +++ b/examples/python/tests/browsers/test_chrome.py @@ -7,6 +7,7 @@ def test_basic_options(): options = webdriver.ChromeOptions() + options.add_argument("--no-sandbox") driver = webdriver.Chrome(options=options) driver.quit() diff --git a/examples/python/tests/browsers/test_edge.py b/examples/python/tests/browsers/test_edge.py index a789bb523102..f7394f28464f 100644 --- a/examples/python/tests/browsers/test_edge.py +++ b/examples/python/tests/browsers/test_edge.py @@ -7,6 +7,7 @@ def test_basic_options(): options = webdriver.EdgeOptions() + options.add_argument("--no-sandbox") driver = webdriver.Edge(options=options) driver.quit() diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md index fcea717bb353..81941fb29fe6 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md @@ -26,7 +26,7 @@ Starting a Chrome session with basic defined options looks like this: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L36-L37" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} @@ -58,7 +58,7 @@ Add an argument to options: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L44" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L19" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} @@ -86,7 +86,7 @@ Add a browser location to options: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L53" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L30">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} @@ -115,7 +115,7 @@ Add an extension to options: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L64" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L41">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L73-L84" >}} @@ -141,7 +141,7 @@ so long as the quit command is not sent to the driver. **Note**: This is already the default behavior in Java. {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L52" >}} {{% /tab %}} {{% tab header="CSharp" %}} **Note**: This is already the default behavior in .NET. @@ -172,7 +172,7 @@ Set excluded arguments on options: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L78" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L63" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L82" >}} @@ -212,7 +212,7 @@ Property value: String representing path to log file {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L71" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L72" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} @@ -243,7 +243,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L82" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L83" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -276,7 +276,7 @@ Property value: String representation of `ChromiumDriverLogLevel` enum {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L93" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L94" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -310,7 +310,7 @@ Property keys: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` and `Chro Property value: `"true"` or `"false"` {{% /tab %}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L104" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L105" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -343,7 +343,7 @@ Property value: `"true"` or `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L115" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L116" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} @@ -373,7 +373,7 @@ You can drive Chrome Cast devices, including sharing tabs {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L230-L235" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L170-L174" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L171-L175" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -399,7 +399,7 @@ You can simulate various network conditions. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L204-L210" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L130-L136" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -422,7 +422,7 @@ You can simulate various network conditions. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L247" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L186" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L187" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -445,7 +445,7 @@ You can simulate various network conditions. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L189" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L149" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L150" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md index 2235e9ca3bf0..13f9c0a3e3f5 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md @@ -25,7 +25,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L36-L37" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} @@ -57,7 +57,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L44" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L19" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} @@ -85,7 +85,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L53" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L30">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} @@ -114,7 +114,7 @@ The `extensions` パラメータはcrxファイルを受け入れます。解凍 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L64" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L41">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L73-L84" >}} @@ -139,7 +139,7 @@ The `extensions` パラメータはcrxファイルを受け入れます。解凍 **注意**: これはすでにJavaのデフォルトの動作です。 {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L52" >}} {{% /tab %}} {{% tab header="CSharp" %}} **注意**: これはすでに.NETのデフォルトの動作です。 @@ -171,7 +171,7 @@ Chrome はさまざまな引数を追加します。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L78" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L63" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L82" >}} @@ -209,7 +209,7 @@ Chrome はさまざまな引数を追加します。 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L71" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L72" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} @@ -240,7 +240,7 @@ Chrome はさまざまな引数を追加します。 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L82" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L83" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -271,7 +271,7 @@ Chrome はさまざまな引数を追加します。 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L93" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L94" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -304,7 +304,7 @@ Chrome はさまざまな引数を追加します。 プロパティ値: `"true"` または `"false"` {{% /tab %}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L104" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L105" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -335,7 +335,7 @@ ChromedriverとChromeブラウザのバージョンは一致する必要があ {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L115" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L116" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} @@ -366,7 +366,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L230-L235" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L170-L174" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L171-L175" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -393,7 +393,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L204-L210" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L130-L136" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -416,7 +416,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L247" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L186" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L187" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -439,7 +439,7 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L189" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L149" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L150" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md index 69b578d30aa1..ddc36748ab03 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md @@ -24,7 +24,7 @@ Este é um exemplo de como iniciar uma sessão Chrome com um conjunto de opçõe {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L36-L37" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} @@ -58,7 +58,7 @@ Add an argument to options: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L44" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L19" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} @@ -83,7 +83,7 @@ Adicionar uma localização: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L53" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L30">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} @@ -114,7 +114,7 @@ Adicionar uma extensão: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L64" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L41">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L73-L84">}} @@ -141,7 +141,7 @@ Adicionar detach: **Note**: This is already the default behavior in Java. {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L52" >}} {{% /tab %}} {{% tab header="CSharp" %}} **Note**: This is already the default behavior in .NET. @@ -173,7 +173,7 @@ Exclua parametros: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L78" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L63" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L82" >}} @@ -213,7 +213,7 @@ Property value: String representing path to log file {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L71" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L72" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} @@ -244,7 +244,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L82" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L83" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -277,7 +277,7 @@ Property value: String representation of `ChromiumDriverLogLevel` enum {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L93" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L94" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -311,7 +311,7 @@ Property keys: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` and `Chro Property value: `"true"` or `"false"` {{% /tab %}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L104" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L105" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -344,7 +344,7 @@ Property value: `"true"` or `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L115" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L116" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} @@ -373,7 +373,7 @@ Pode comandar dispositivos Chrome Cast, incluindo partilhar abas {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L230-L235" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L170-L174" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L171-L175" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -402,7 +402,7 @@ please refer to the {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L204-L210" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L130-L136" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -425,7 +425,7 @@ please refer to the {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L247" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L186" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L187" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -448,7 +448,7 @@ please refer to the {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L189" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L149" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L150" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md index ca162c4fbd69..111b8a604994 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md @@ -24,7 +24,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L36-L37" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} @@ -58,7 +58,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L44" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L19" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} @@ -85,7 +85,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L53" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L30">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} @@ -114,7 +114,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L64" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L41">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L73-L84" >}} @@ -141,7 +141,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch **Note**: This is already the default behavior in Java. {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L52" >}} {{% /tab %}} {{% tab header="CSharp" %}} **Note**: This is already the default behavior in .NET. @@ -171,7 +171,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L78" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L63" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L82" >}} @@ -213,7 +213,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L71" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L72" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} @@ -244,7 +244,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L82" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L83" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -277,7 +277,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L93" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L94" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -312,7 +312,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 属性值: `"true"` 或 `"false"` {{% /tab %}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L104" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L105" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-implementation >}} @@ -345,7 +345,7 @@ Chromedriver 和 Chrome 浏览器版本应该匹配, 如果它们不匹配, 驱 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L115" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L116" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} @@ -374,7 +374,7 @@ Chromedriver 和 Chrome 浏览器版本应该匹配, 如果它们不匹配, 驱 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L230-L235" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L170-L174" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L171-L175" >}} {{< /tab >}}{{< tab header="CSharp" >}} {{< badge-code >}} {{< /tab >}} @@ -402,7 +402,7 @@ Chromedriver 和 Chrome 浏览器版本应该匹配, 如果它们不匹配, 驱 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L204-L210" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L130-L136" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -425,7 +425,7 @@ Chromedriver 和 Chrome 浏览器版本应该匹配, 如果它们不匹配, 驱 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L247" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L186" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L187" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -448,7 +448,7 @@ Chromedriver 和 Chrome 浏览器版本应该匹配, 如果它们不匹配, 驱 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L189" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L149" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L150" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.en.md b/website_and_docs/content/documentation/webdriver/browsers/edge.en.md index 3376972d5835..5bd12a69992f 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.en.md @@ -23,7 +23,7 @@ Starting an Edge session with basic defined options looks like this: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L30-L31" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md b/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md index 28879dbf9552..6750bb6138e1 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md @@ -24,7 +24,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https:// {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L38" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L30-L31" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md index e88a45237f61..a46869339627 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md @@ -25,7 +25,7 @@ Este é um exemplo de como iniciar uma sessão Edge com um conjunto de opções {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L30-L31" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md index bc794dae76cf..bf563e762921 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md @@ -25,7 +25,7 @@ Chromium独有的功能记录在谷歌的 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L30-L31" >}}