You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
So, first, we are trying to move away from static code, and move all examples to our repo.
But even in our repo we are trying to only import the lines of code that matter. At least this way there will be a big link to see the full example.
At the same time, I'm leaning towards us just using the full path for classes instead of doing imports to make it more obvious where it is coming from.
e.g.:
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
The text was updated successfully, but these errors were encountered: