Skip to content

[🐛 Bug]: Document for "Locator strategies" does explain what is "By"  #1393

Closed
@HGtz2222

Description

@HGtz2222

What happened?

https://www.selenium.dev/documentation/webdriver/elements/locators/

In this page, the demo code show how to locator an element, such as:

driver.find_element(By.CLASS_NAME, "information")

But I cannot see what is the "By", and how can I import "By" in my code.

If I use Java, IDE can help me generate code to import "By" . But if I use Python, most IDE cannot do such thing.
So I hope the document can add the import statement for these key identifiers such as "By".

Thanks very much!

What browsers and operating systems are you seeing the problem on?

uncorrelated

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationneeds-triaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions