From 0f1ccc327cd49141318332c7d7dc68dbb8eaf924 Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Sun, 6 Oct 2024 09:32:53 -0500 Subject: [PATCH 1/6] Rephrase "description" for page "Understanding Common Errors" Replace ``` How to get deal with various problems in your Selenium code ``` with ``` How to solve various problems in your Selenium code ``` to make simpler the description. --- .../documentation/webdriver/troubleshooting/errors/_index.en.md | 2 +- .../documentation/webdriver/troubleshooting/errors/_index.ja.md | 2 +- .../webdriver/troubleshooting/errors/_index.pt-br.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md index acf3f2b0e4cd..409475e12c8a 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md @@ -3,7 +3,7 @@ title: "Understanding Common Errors" linkTitle: "Errors" weight: 2 description: > - How to get deal with various problems in your Selenium code. + How to solve various problems in your Selenium code. aliases: [ "/exceptions/", "/exceptions/invalid_selector_exception.html", diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md index 450a8b56c157..2241ec21470f 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md @@ -3,7 +3,7 @@ title: "Understanding Common Errors" linkTitle: "Errors" weight: 2 description: > - How to get deal with various problems in your Selenium code. + How to solve various problems in your Selenium code. --- ## InvalidSelectorException diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md index a01cdd0ae7b2..70f7d40a4811 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md @@ -3,7 +3,7 @@ title: "Understanding Common Errors" linkTitle: "Errors" weight: 2 description: > - How to get deal with various problems in your Selenium code. + How to solve various problems in your Selenium code. --- ## InvalidSelectorException From eeeb7b27d593ca81ce2d16906f3b8c12c08e61de Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Sun, 6 Oct 2024 09:36:02 -0500 Subject: [PATCH 2/6] Rephrase "description" on page "Troubleshooting Assistance" Replace ``` How to get manage WebDriver problems ``` with ``` How to solve WebDriver problems ``` to make simpler the description. --- .../documentation/webdriver/troubleshooting/_index.en.md | 2 +- .../documentation/webdriver/troubleshooting/_index.ja.md | 2 +- .../documentation/webdriver/troubleshooting/_index.pt-br.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.en.md b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.en.md index 7963e483b58e..428fc3eaba6d 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.en.md @@ -3,7 +3,7 @@ title: "Troubleshooting Assistance" linkTitle: "Troubleshooting" weight: 20 description: > - How to get manage WebDriver problems. + How to solve WebDriver problems. --- It is not always obvious the root cause of errors in Selenium. diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md index 7963e483b58e..428fc3eaba6d 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md @@ -3,7 +3,7 @@ title: "Troubleshooting Assistance" linkTitle: "Troubleshooting" weight: 20 description: > - How to get manage WebDriver problems. + How to solve WebDriver problems. --- It is not always obvious the root cause of errors in Selenium. diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.pt-br.md index 7963e483b58e..428fc3eaba6d 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.pt-br.md @@ -3,7 +3,7 @@ title: "Troubleshooting Assistance" linkTitle: "Troubleshooting" weight: 20 description: > - How to get manage WebDriver problems. + How to solve WebDriver problems. --- It is not always obvious the root cause of errors in Selenium. From 0aecd58d22b2ba30a63f282e23117f2348441624 Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Sun, 6 Oct 2024 09:38:51 -0500 Subject: [PATCH 3/6] Rephrase sentence. Separate two sentences with period. Replace ``` WebDriver drives a browser natively ..., marks a leaps forward ``` with ``` WebDriver drives a browser natively .... It marks a leaps forward ``` I claim the version before the change is a 'run-on sentence', i.e. two separate sentences that are connected improperly (see https://academicguides.waldenu.edu/writingcenter/grammar/runonsentences). This commit changes how those two sentences are connected; in particular, it separates the sentences with a period and provides a subject for the second sentence. --- website_and_docs/content/documentation/webdriver/_index.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/_index.en.md b/website_and_docs/content/documentation/webdriver/_index.en.md index 678e9ef5a180..4924f9fab727 100644 --- a/website_and_docs/content/documentation/webdriver/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/_index.en.md @@ -9,8 +9,8 @@ aliases: ["/documentation/en/webdriver/"] WebDriver drives a browser natively, as a user would, either locally -or on a remote machine using the Selenium server, -marks a leap forward in terms of browser automation. +or on a remote machine using the Selenium server. +It marks a leap forward in terms of browser automation. Selenium WebDriver refers to both the language bindings and the implementations of the individual browser controlling code. From 376bf51df499c36069f13b9aadd8144b8368f9da Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Sun, 6 Oct 2024 09:45:47 -0500 Subject: [PATCH 4/6] Reformat sentence. Remove space between word and comma The page https://www.selenium.dev/documentation/overview/details/ includes ``` the images are displayed in the same place , ``` I intend this commit removes the space between 'place' and ','. --- website_and_docs/content/documentation/overview/details.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website_and_docs/content/documentation/overview/details.en.md b/website_and_docs/content/documentation/overview/details.en.md index 53b1064cffa3..7700beaa9475 100644 --- a/website_and_docs/content/documentation/overview/details.en.md +++ b/website_and_docs/content/documentation/overview/details.en.md @@ -40,8 +40,8 @@ Web browsers are incredibly complex, highly engineered applications, performing their operations in entirely different ways but which frequently look the same while doing so. Even though the text is rendered in the same fonts, -the images are displayed in the same place -, and the links take you to the same destination. +the images are displayed in the same place, +and the links take you to the same destination. What is happening underneath is as different as night and day. Selenium “abstracts” these differences, hiding their details and intricacies from the person writing the code. From c4249e052c38b3925bf007a899d913674a9ed68d Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Sun, 6 Oct 2024 10:09:28 -0500 Subject: [PATCH 5/6] Reformat code blocks. Show code on site rather than format text. On page https://www.selenium.dev/documentation/webdriver/drivers/ in section 'Quitting Sessions', the Java code example shows text: ``` {< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} ``` Instead of this, we want to show the code from that file. This commit adds an extra layer of `{}` in order to show the code. The panels for other languages that work (i.e. Python, Ruby) have this extra layer of `{}`. --- .../content/documentation/webdriver/drivers/_index.en.md | 8 ++++---- .../content/documentation/webdriver/drivers/_index.ja.md | 8 ++++---- .../documentation/webdriver/drivers/_index.pt-br.md | 8 ++++---- .../documentation/webdriver/drivers/_index.zh-cn.md | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md index 790b4b679225..d95312a55125 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md @@ -61,21 +61,21 @@ and it is recommended to always use `quit` to end the session {{< tabpane text=true >}} {{< tab header="Java" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} +{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} +{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md index 2b61551f1a69..1b1eb78e35d8 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md @@ -60,21 +60,21 @@ weight: 3 {{< tabpane text=true >}} {{< tab header="Java" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} +{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} +{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md index ac00ae8d6fdf..f9490b3d9506 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md @@ -61,21 +61,21 @@ and it is recommended to always use `quit` to end the session {{< tabpane text=true >}} {{< tab header="Java" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} +{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} +{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md index d10139307c94..7586ad4c36b0 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md @@ -61,21 +61,21 @@ weight: 3 {{< tabpane text=true >}} {{< tab header="Java" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} +{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} +{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}} {{< /tab >}} {{< /tabpane >}} From f81d619637157bd6b885fc41b32b25938c0075cd Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Thu, 7 Nov 2024 11:23:22 -0600 Subject: [PATCH 6/6] Fetch and merge from seleniumhq.github.io/trunk That is, apply changes to the branch for my pull request from trunk branch at main repo. --- .../webdriver/drivers/_index.en.md | 19 ++++++++++--------- .../webdriver/drivers/_index.ja.md | 15 +++++++-------- .../webdriver/drivers/_index.pt-br.md | 19 ++++++++++--------- .../webdriver/drivers/_index.zh-cn.md | 13 ++++++------- .../webdriver/troubleshooting/_index.ja.md | 4 ++-- 5 files changed, 35 insertions(+), 35 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md index d95312a55125..0743dd8be659 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md @@ -14,7 +14,8 @@ The session is created automatically by initializing a new Driver class object. Each language allows a session to be created with arguments from one of these classes (or equivalent): -* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but this is required for remote +* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but + this is required for remote * Some form of [HTTP Client configuration]({{< ref "http_client.md" >}}) (the implementation varies between languages) * [Listeners]({{< ref "listeners.md" >}}) @@ -23,23 +24,24 @@ Each language allows a session to be created with arguments from one of these cl The primary unique argument for starting a local driver includes information about starting the required driver service on the local machine. -* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver +* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser + driver {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} @@ -51,12 +53,11 @@ on the local machine. The primary unique argument for starting a remote driver includes information about where to execute the code. Read the details in the [Remote Driver Section]({{< ref "remote_webdriver.md" >}}) - ## Quitting Sessions Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session). -Important note: the `quit` method is different from the `close` method, +Important note: the `quit` method is different from the `close` method, and it is recommended to always use `quit` to end the session {{< tabpane text=true >}} @@ -64,10 +65,10 @@ and it is recommended to always use `quit` to end the session {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScript.cs#L28" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md index 1b1eb78e35d8..4ee79fdd488a 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md @@ -14,32 +14,31 @@ weight: 3 各言語では、次のいずれかのクラス (または同等のもの) の引数を使用してセッションを作成することができます。 -* [オプション]({{< ref "options.md" >}}) 作成を希望するセッションの種類 ; ローカルにはデフォルト値を使用しますが、リモートには必須です。 +* [オプション]({{< ref "options.md" >}}) 作成を希望するセッションの種類 ; ローカルにはデフォルト値を使用しますが、リモートには必須です。 * 何らかの形の[HTTP Client configuration]({{< ref "http_client.md" >}}) (実装は言語によって異なります) * [リスナー]({{< ref "listeners.md" >}}) - + ### ローカルドライバー ローカルドライバーを起動するための主な一意の引数には、ローカルコンピューターで必要なドライバーサービスを起動するための情報が含まれます。 - * [Service]({{< ref "service.md" >}})オブジェクトはローカルドライバーにのみ適用され、ブラウザーのドライバーに関する情報を提供します。 {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} @@ -63,10 +62,10 @@ weight: 3 {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScript.cs#L28" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md index f9490b3d9506..0addfe19520c 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md @@ -14,7 +14,8 @@ The session is created automatically by initializing a new Driver class object. Each language allows a session to be created with arguments from one of these classes (or equivalent): -* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but this is required for remote +* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but + this is required for remote * Some form of [Http Client Configuration]({{< ref "http_client.md" >}}) (the implementation varies between languages) * [Listeners]({{< ref "listeners.md" >}}) @@ -23,23 +24,24 @@ Each language allows a session to be created with arguments from one of these cl The primary unique argument for starting a local driver includes information about starting the required driver service on the local machine. -* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver +* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser + driver {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} @@ -51,12 +53,11 @@ on the local machine. The primary unique argument for starting a remote driver includes information about where to execute the code. Read the details in the [Remote Driver Section]({{< ref "remote_webdriver.md" >}}) - ## Quitting Sessions Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session). -Important note: the `quit` method is different from the `close` method, +Important note: the `quit` method is different from the `close` method, and it is recommended to always use `quit` to end the session {{< tabpane text=true >}} @@ -64,10 +65,10 @@ and it is recommended to always use `quit` to end the session {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScript.cs#L28" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md index 7586ad4c36b0..129503e2a9d7 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md @@ -8,7 +8,7 @@ weight: 3 ## 创建会话 -创建会话对应于W3C的命令 [新建会话](https://w3c.github.io/webdriver/#new-session) +创建会话对应于W3C的命令 [新建会话](https://w3c.github.io/webdriver/#new-session) 会话是通过初始化新的驱动类对象自动创建的. @@ -27,19 +27,19 @@ weight: 3 {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}} {{< /tab >}} {{< tab header="Kotlin" >}} {{< badge-code >}} @@ -51,7 +51,6 @@ weight: 3 用于启动远程驱动的首要唯一参数包括有关在何处执行代码的信息. 请浏览 [远程驱动章节]({{< ref "remote_webdriver.md" >}})中的详细信息 - ## 退出会话 退出会话对应于W3C的命令 [删除会话](https://w3c.github.io/webdriver/#delete-session). @@ -64,10 +63,10 @@ weight: 3 {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L11" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScript.cs#L28" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md index 428fc3eaba6d..250c55519b42 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md @@ -1,9 +1,9 @@ --- -title: "Troubleshooting Assistance" +title: "トラブルシューティングの支援" linkTitle: "Troubleshooting" weight: 20 description: > - How to solve WebDriver problems. + WebDriverの問題を管理する方法。 --- It is not always obvious the root cause of errors in Selenium.