Skip to main content

SeleniumXP utilities for Python

Package with utilities and functional extensions for Selenium webdriver Python language bindings

Features

The package consist of various helpers and extensions to the Selenium webdriver:

  • module for session handling especially a custom factory function to initialize a webdriver object
  • module with additional methods for the webdriver class and a respective mixin class
  • module with convenience functions for locators
  • module with additional methods for the webelement class
  • an extended event-firing webdriver and an extended listener abstract base class
  • a sample event listener implementation based on the extended abstract base class

Different from other packages extending the Selenium webdriver class this package does not work with wrapping the original webdriver but providing a mixin class or alternatively directly setting additional methods via 'setattr' in the original webdriver class (monkey patching). This is done and controlled via a pretty versatile custom factory function initializing the webdriver. The factory function includes stealthenizing mechanism. Beside typical script injection techniques and for this reason to use pre-patched webdriver classes like "undetected chromedriver" or other pre-patched webdriver classes. However, using pre-patched webdriver classes is not limited to "undetected chromedriver"or patched classes for stealthenizing even the use of such functional enriched wrappers contradict to the choosen monkey patching approach of SeleniumXP.

The webelement extensions are done via setattr only. Implementing a mixin class would require to modify webdriver methods to return the new class with the mixin. So benefit of the monkey patching approach with setattr is that extending the webelement class is independent from changes to the webdriver class.

Note: as I am coming from camel case notation I was struggling a little bit with the Python naming conventions. However, for publishing I tried to increase compliance with Python naming conventions and added snake case method stubs (at least for most important subroutines) as a compromise.

Development

To set up hatch and pre-commit for the first time:

  1. install hatch globally, e.g. with pipx, i.e. pipx install hatch,
  2. make sure pre-commit is installed globally, e.g. with pipx install pre-commit.

A special feature that makes hatch very different from other familiar tools is that you almost never activate, or enter, an environment. Instead, you use hatch run env_name:command and the default environment is assumed for a command if there is no colon found. Thus you must always define your environment in a declarative way and hatch makes sure that the environment reflects your declaration by updating it whenever you issue a hatch run .... This helps with reproducability and avoids forgetting to specify dependencies since the hatch workflow is to specify everything directly in pyproject.toml. Only in rare cases, you will use hatch shell to enter the default environment, which is similar to what you may know from other tools.

To get you started, use hatch run test:cov or hatch run test:no-cov to run the unitest with or without coverage reports, respectively. Use hatch run lint:all to run all kinds of typing and linting checks. Try to automatically fix linting problems with hatch run lint:fix and use hatch run docs:serve to build and serve your documentation. You can also easily define your own environments and commands. Check out the environment setup of hatch in pyproject.toml for more commands as well as the package, build and tool configuration.

To support versioning and changelog generation please refer to the toolchain selected during package generation (see also pyproject.toml). If not deselected, the toolchain includes a pre-commit hook for linting commit messages to ensure commit messages are compliant with the conventional commit format and support an automated changelog generation.

Credits

This package was created with The Hatchlor Enhanced project template. This template is based on The Hatchlor but was substantially improved.

Metadata

Release files for utils-seleniumxp 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utils-seleniumxp 1.4.0
File Size Uploaded Provenance Actions
utils_seleniumxp-1.4.0.tar.gz 42.2 kB With provenance Details for utils_seleniumxp-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for utils-seleniumxp 1.4.0
File Interpreter ABI Platform Actions
utils_seleniumxp-1.4.0-py3-none-any.whl Python 3 none any Details for utils_seleniumxp-1.4.0-py3-none-any.whl

Total release size: 88.7 kB

Release files / utils_seleniumxp-1.4.0.tar.gz

Download URL utils_seleniumxp-1.4.0.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8e69ecf194bc964848e59931bf807b9850d3de07061cefd59535997b7a2a5809
BLAKE2b-256 checksum
How to use checksums
96b693abb4e61584fea9544ac538fe01b37bee411a06ed3a7fbcabe960e64878
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / utils_seleniumxp-1.4.0-py3-none-any.whl

Download URL utils_seleniumxp-1.4.0-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
772be73950b07f737af4ac0d23169df4ab7ae92814a64e694474c672cf2e76a3
BLAKE2b-256 checksum
How to use checksums
b6dfe195ee31cfeed1e552923a29fc3557b72aca6cb73d43bdbe80d667df4b7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for utils-seleniumxp 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for utils_seleniumxp-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page