SeleniumHQ / seleniumhq.github.io

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

Fixing consistency and English grammar #1804

Open Nisim761 opened 2 months ago

Nisim761 commented 2 months ago

User description

Thanks for contributing to the Selenium site and documentation! A PR well described will help maintainers to review and merge it quickly

Before submitting your PR, please check our contributing guidelines. Avoid large PRs, and help reviewers by making them as simple and short as possible.

Description

Motivation and Context

Types of changes

Checklist


PR Type

Documentation


Description


Changes walkthrough πŸ“

Relevant files
Documentation
locators.en.md
Improve grammar and consistency in locators documentation

website_and_docs/content/documentation/webdriver/elements/locators.en.md
  • Improved grammar and consistency in explanations.
  • Clarified instructions for creating locators.
  • Corrected terminology for XPath and CSS selectors.
  • +9/-9     

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

    netlify[bot] commented 2 months ago

    Deploy request for selenium-dev pending review.

    Visit the deploys page to approve it

    Name Link
    Latest commit f017fefb21aacf4ca70007334c6fe6c59795baed
    codiumai-pr-agent-pro[bot] commented 2 months ago

    PR Reviewer Guide πŸ”

    ⏱️ Estimated effort to review: 2 πŸ”΅πŸ”΅βšͺβšͺβšͺ
    πŸ§ͺ No relevant tests
    πŸ”’ No security concerns identified
    ⚑ Key issues to review

    **Grammar Consistency:** The changes made in the PR improve grammar and consistency, which is beneficial for documentation clarity. No major issues detected.
    codiumai-pr-agent-pro[bot] commented 2 months ago

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Possible issue
    Correct the article usage for grammatical accuracy ___ **Correct the grammatical error by changing "A HTML" to "An HTML" for proper article
    usage before a vowel sound.** [website_and_docs/content/documentation/webdriver/elements/locators.en.md [298]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1804/files#diff-bad5c08d78f84e8bd7528d1a2a3181973375147d3f8bc5b9678cfce7dbe76aabR298-R298) ```diff -A HTML document can be considered as a XML document, and then we can use XPath +An HTML document can be considered as an XML document, and then we can use XPath ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 9 Why: This correction addresses a clear grammatical error, enhancing the overall quality and professionalism of the documentation.
    9
    Enhancement
    Improve the clarity and grammatical structure of the sentence ___ **Revise the sentence for clarity and grammatical correctness. The phrase "using
    which" is awkward and can be simplified for better readability.** [website_and_docs/content/documentation/webdriver/elements/locators.en.md [37]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1804/files#diff-bad5c08d78f84e8bd7528d1a2a3181973375147d3f8bc5b9678cfce7dbe76aabR37-R37) ```diff -Selenium provides us above mentioned ways, using which we can locate an element on the +Selenium provides the above-mentioned methods, which we can use to locate an element on the ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 8 Why: The suggestion improves readability and grammatical correctness, making the sentence clearer and more professional.
    8
    Enhance the readability and consistency of the XPath description ___ **Modify the sentence structure to enhance readability and maintain consistency in the
    description of XPath usage.** [website_and_docs/content/documentation/webdriver/elements/locators.en.md [302-303]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1804/files#diff-bad5c08d78f84e8bd7528d1a2a3181973375147d3f8bc5b9678cfce7dbe76aabR302-R303) ```diff -Or the Xpath could be relative. Example - //input[@name='fname']. This will return the +Alternatively, the XPath can be relative. For example, //input[@name='fname'] will return the ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 7 Why: The suggestion improves readability and maintains consistency, which is beneficial for understanding the documentation, though it is a minor enhancement.
    7
    Maintainability
    Improve sentence clarity and conciseness ___ **Revise the sentence to improve clarity and conciseness by removing unnecessary
    words.** [website_and_docs/content/documentation/webdriver/elements/locators.en.md [346]](https://github.com/SeleniumHQ/seleniumhq.github.io/pull/1804/files#diff-bad5c08d78f84e8bd7528d1a2a3181973375147d3f8bc5b9678cfce7dbe76aabR346-R346) ```diff -Relative locator methods can take either a previously located element reference, +Relative locator methods can take a previously located element reference, ``` - [ ] **Apply this suggestion**
    Suggestion importance[1-10]: 6 Why: The suggestion makes the sentence more concise and easier to read, which is a minor but useful improvement for maintainability.
    6
    Nisim761 commented 2 months ago

    @harsha509 Can you please update what is missing?