Skip to content

[🚀 Feature]: More documentation and examples for by.py #14746

Open
@Andre-Medina

Description

@Andre-Medina

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 to WebDriver.find_element
  • py/selenium/webdriver/common/by.py to By

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/...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-pyPython BindingsI-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions