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.1.0.tar.gz (11.4 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.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jc_selenium_helper-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 09ae9fb98589026938349534a10f2176648afe59a14f980956c3ccacd1d9ad7f
MD5 c077c8d131bc27d660b78d56236120c6
BLAKE2b-256 521b9b0d76b954045904ea6a5e7d6b15e992155a8967b486c8051c7ebe42f2ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for jc_selenium_helper-0.1.0.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jc_selenium_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d892eafc313af6e1e500d00b8d09ef8425f8a0cb6d087918e48a861318494ba0
MD5 20f80cf0a172536897f37efa77e87c7b
BLAKE2b-256 0087e476160c827547f59ca166c7a75309d7d56cb8ed8b500f2df3125bd234cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for jc_selenium_helper-0.1.0-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