Skip to main content

Selenium WebDriver helper utilities for writing browser tests

Project description

jc-selenium-helper

Selenium WebDriver helper utilities for writing browser tests.

Browser wraps a Selenium WebDriver with concise, XPath-by-default finders, waits, actions, assertions, and frame handling. Optional extras add a ready-made pytest fixture, a Dynaconf settings loader, and axe-core accessibility checks.

Install

pip install jc-selenium-helper            # core (selenium only)
pip install "jc-selenium-helper[pytest]"  # + pytest fixtures
pip install "jc-selenium-helper[config]"  # + Dynaconf settings loader
pip install "jc-selenium-helper[axe]"     # + accessibility checks
pip install "jc-selenium-helper[all]"     # everything

Quickstart

from selenium import webdriver
from jc_selenium_helper import Browser

driver = webdriver.Chrome()
browser = Browser(driver, default_timeout=30)

browser.open("https://example.com")
browser.wait_and_click("//a[@id='more']")  # XPath by default

Links

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jc_selenium_helper-0.3.1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jc_selenium_helper-0.3.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file jc_selenium_helper-0.3.1.tar.gz.

File metadata

  • Download URL: jc_selenium_helper-0.3.1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jc_selenium_helper-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b5697abeafcfcb911dcc74c40d4bc13de714b6400d00979d78566eb625fb7a5b
MD5 3079b8ff37f0c26b21c8f08d9c2b4b96
BLAKE2b-256 62e36ab7307abdfe81bbce73237edef1ff13e130890ecaccfeb8760e8a97fab9

See more details on using hashes here.

Provenance

The following attestation bundles were made for jc_selenium_helper-0.3.1.tar.gz:

Publisher: publish.yml on jacob-consulting/jc-selenium-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jc_selenium_helper-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jc_selenium_helper-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4b4480d77ffa9fcedde828e2ea9993eec5ae3c85d8ec655c94f05ef2b069ffe
MD5 4e9c0f593f8cfad1aae2f8956fde8263
BLAKE2b-256 9daf4141de3431fd25643aafdbeb6bfd4c2a5177a6c5dfc4ca977054908a593e

See more details on using hashes here.

Provenance

The following attestation bundles were made for jc_selenium_helper-0.3.1-py3-none-any.whl:

Publisher: publish.yml on jacob-consulting/jc-selenium-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page