SeleniumHQ / seleniumhq.github.io

Official Selenium website and documentation
https://selenium.dev
Apache License 2.0
1.09k stars 1.28k forks source link

added quitting examples for all lanaguges/translations #1882

Closed shbenzer closed 3 weeks ago

shbenzer commented 3 weeks ago

User description

Added code examples for driver.quit in all languages and translations

Description

Added code examples for driver.quit in all languages and translations

Motivation and Context

documentation should be as comprehensive as possible

Types of changes

Checklist


PR Type

Documentation


Description


Changes walkthrough 📝

Relevant files
Documentation
_index.en.md
Add `driver.quit` code examples in multiple languages       

website_and_docs/content/documentation/webdriver/drivers/_index.en.md
  • Added code example links for driver.quit in Java, CSharp, JavaScript,
    and Kotlin.
  • Enhanced documentation with practical examples.
  • +4/-0     
    _index.ja.md
    Add `driver.quit` code examples in Japanese documentation

    website_and_docs/content/documentation/webdriver/drivers/_index.ja.md
  • Added code example links for driver.quit in Java, CSharp, JavaScript,
    and Kotlin.
  • Improved Japanese documentation with code examples.
  • +4/-0     
    _index.pt-br.md
    Add `driver.quit` code examples in Portuguese documentation

    website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md
  • Added code example links for driver.quit in Java, CSharp, JavaScript,
    and Kotlin.
  • Enhanced Portuguese documentation with practical examples.
  • +4/-0     
    _index.zh-cn.md
    Add `driver.quit` code examples in Chinese documentation 

    website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md
  • Added code example links for driver.quit in Java, CSharp, JavaScript,
    and Kotlin.
  • Improved Chinese documentation with code examples.
  • +4/-0     

    💡 PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    netlify[bot] commented 3 weeks ago

    Deploy request for selenium-dev pending review.

    Visit the deploys page to approve it

    Name Link
    Latest commit 75eef14c3a684445f52e682511ff854609d0b391
    codiumai-pr-agent-pro[bot] commented 3 weeks ago

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Key issues to review

    Incorrect Code Example
    The code example for CSharp is incorrectly using the Java example path. Incorrect Code Example
    The code example for CSharp is incorrectly using the Java example path. Incorrect Code Example
    The code example for CSharp is incorrectly using the Java example path. Incorrect Code Example
    The code example for CSharp is incorrectly using the Java example path.
    codiumai-pr-agent-pro[bot] commented 3 weeks ago

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Bug fix
    Correct the file path for the CSharp code example ___ **The code block for CSharp is incorrectly using the Java example path. Replace it
    with the correct CSharp example path.** [website_and_docs/content/documentation/webdriver/drivers/_index.en.md [70-73]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1882/files#diff-10ff84d69cea7383c29ebfd0e4934cda8a3d6111bfc937897b1f446c4f4781b5R70-R73) ```diff {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScriptTest.cs#L29" >} {{< badge-code >}} {{< /tab >}} ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 9 Why: The suggestion correctly identifies a bug where the CSharp code block is using a Java example path, which is a significant issue that needs to be fixed for clarity and accuracy.
    9
    Correct the file path for the CSharp code example in the Japanese translation ___ **The code block for CSharp is incorrectly using the Java example path. Replace it
    with the correct CSharp example path.** [website_and_docs/content/documentation/webdriver/drivers/_index.ja.md [69-72]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1882/files#diff-bfbaccc3ea80f5b819613809c7324862ee335c163d6e474b07a0d3aa7e48740eR69-R72) ```diff {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScriptTest.cs#L29" >} {{< badge-code >}} {{< /tab >}} ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 9 Why: This suggestion addresses the same critical issue in the Japanese translation, ensuring consistency and correctness across different language versions.
    9
    Correct the file path for the CSharp code example in the Portuguese translation ___ **The code block for CSharp is incorrectly using the Java example path. Replace it
    with the correct CSharp example path.** [website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md [70-73]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1882/files#diff-86b91e7aed382ec5c668cf7a26e77cc125d1b983696d9fa5962ce8c47c598fc9R70-R73) ```diff {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScriptTest.cs#L29" >} {{< badge-code >}} {{< /tab >}} ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 9 Why: The suggestion fixes the incorrect file path in the Portuguese translation, which is essential for maintaining the accuracy of the documentation.
    9
    Correct the file path for the CSharp code example in the Chinese translation ___ **The code block for CSharp is incorrectly using the Java example path. Replace it
    with the correct CSharp example path.** [website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md [70-73]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1882/files#diff-271afe3b24802a1c6427f915a6ded1b3f370a63eda9ee97b38820971149f4563R70-R73) ```diff {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScriptTest.cs#L29" >} {{< badge-code >}} {{< /tab >}} ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 9 Why: Correcting the file path in the Chinese translation is crucial for ensuring that the documentation is accurate and useful for all users.
    9