Installation
pip install selenium-enhancer
Setting Up a Driver
After installing or whenver you need to update to the latest version of ChromeDriver, run:
python -m selenium_enhancer.get_latest_chrome_driver
ChromeDriver is recommended as it has more options, but Firefox and IE drivers are in theory compatible as well. Please feel free to contribute if you need additional functionality.
Getting Started
from selenium_enhancer import SeleniumEnhancer
class ClassName(SeleniumEnhancer):
def complete_web_form(self):
self.start_chrome_driver()
self.driver.get("full-url-of-page-with-form.com")
self.set_input_elements({
"id or CSS selector or XPath" : "value I want to set",
"second id or CSS selector or XPath" : "second value"
})
self.set_select_elements({
"name or id of select element" : "partial/complete text of option"
})
self.click_button("submitButtonId")
driver = ClassName()
driver.complete_web_form()
Examples
If you're cloning the repo to contribute, you can run/view/add to the tests
with at pytest tests -s -vv.
Miscellaneous
Metadata
Release files for selenium-enhancer 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| selenium_enhancer-1.0.1.tar.gz | 2.5 kB | Without provenance | Details for selenium_enhancer-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| selenium_enhancer-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for selenium_enhancer-1.0.1-py3-none-any.whl |
Total release size: 5.3 kB
Release files / selenium_enhancer-1.0.1.tar.gz
| Download URL | selenium_enhancer-1.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2be06233d8e58da1b85cef1476e22400be72df8bc3e343dbf5f71298dca0415a
|
|
BLAKE2b-256 checksum How to use checksums |
f4d89f4cb77b2928ac80368c0e15bb62d1b159e4b2c0ce7eb906d8c93766e676
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / selenium_enhancer-1.0.1-py3-none-any.whl
| Download URL | selenium_enhancer-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
139dfcd87a8847bdbbd7e300124037150344349a0df4046f1f65030ad691e034
|
|
BLAKE2b-256 checksum How to use checksums |
e375d3745af03a6d5fa291c80f9225ae4070cdc1bc6dd5be21d3d40f4ccd3d45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for selenium-enhancer 1.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.