Open
Description
Feature and motivation
Hi all, I've been using Selenium for a few months now. It's amazing, keep up the great work.
I was considering contributing by adding some documentation into the code itself. Particularly to the following classes:
py/selenium/webdriver/remote/webdriver.py
toWebDriver.find_element
py/selenium/webdriver/common/by.py
toBy
I found these are some of the major components for interacting with webpages and there only documentation on selenium.dev
which is a bit out of the way. I thinking adding some examples for when different By
conditions into the code itself would be best. E.g. By.ID
vs By.CSS_SELECTOR
.
This documentation will definitely help beginners who are used to python side documentation in their IDE.
Usage example
Replicate Documation found on "https://www.selenium.dev/documentation/webdriver/elements/locators/" to the files in py/selenium/...