Skip to content

[🚀 Feature]: Rewriting Webdriver > Elements > Finders to Not Use HTML Snippet #2037

Description

@shbenzer

Feature and motivation

As we move code examples to executable files and not as code snippets in the .mds themselves, how do we want to address this page?

Code examples are based on the HTML snippet, but do we want to use one of these instead?

Activity

  1. github-actions commented on Nov 3, 2024

    @github-actions
    Contributor

    @shbenzer, thank you for creating this issue. We will troubleshoot it as soon as we can.


    Info for maintainers

    Triage this issue by using labels.

    If information is missing, add a helpful comment and then I-issue-template label.

    If the issue is a question, add the I-question label.

    If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

    After troubleshooting the issue, please add the R-awaiting answer label.

    Thank you!

  2. rpallavisharma commented on Oct 4, 2025

    @rpallavisharma
    Member

    I agree this page should be updated. We can use this web page to create example code and update documentation.
    multiple web element examples are available - https://www.selenium.dev/selenium/web/formPage.html

  3. github-actions commented on Oct 4, 2025

    @github-actions
    Contributor

    This issue is looking for contributors.

    Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested.

  4. nooras commented on Oct 25, 2025

    @nooras

    Hi @rpallavisharma @shbenzer
    I would like to work on this issue. Can you please elaborate more about issue and change require?
    Thanks

  5. rpallavisharma commented on Oct 25, 2025

    @rpallavisharma
    Member

    The current page uses a html snippet to showcase how finders work in selenium. The code examples could use a webpage , a link is shared on which this could be formed. Kindly read the comments shared on it.

  6. rpallavisharma commented on Oct 26, 2025

    @rpallavisharma
    Member

    @nooras if you still have questions feel free to join the selenium slack - selenium docs channel.

  7. beinghumantester commented on Jun 23, 2026

    @beinghumantester
    Contributor

    @shbenzer and @rpallavisharma

    I would like to work on this issue

    And I have reviewed the current Finders page and mapped the existing examples against formPage.html.
    Most scenarios appear to have a straightforward equivalent on that page (ID, Name, Class Name, CSS selectors, finding elements from elements, collections, active element, etc.).
    The only section I couldn't map cleanly is the Shadow DOM example, since formPage.html doesn't contain any shadow roots.

    Before I start working on a PR, would maintainers prefer that the Shadow DOM example:

    • Move to a different test page (for example shadowPage.html, which already contains shadow roots), or
    • Remain unchanged / be handled separately from this issue? Happy to proceed with the rest of the migration once I have guidance on that section.
  8. rpallavisharma commented on Jul 27, 2026

    @rpallavisharma
    Member

    @beinghumantester , you can use another webpage, preferably from selenium hosted pages to explain shadow dom, if it is part of this section. that should be alright to do. and thanks for the help.

  9. added a commit that references this issue on Oct 8, 2026
    ee11e89
  10. added a commit that references this issue on Oct 8, 2026
    20af1fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions