Seleniumuser
A module that sits ontop of Selenium to streamline scraping and automation workflows.
Install with:
pip install seleniumuser
Currently supports using firefox or chrome.
You will need to have the appropriate web driver executable for the browser and your system in either the system PATH or a location passed to the User class constructor.
They can be found here:
Firefox
Chrome
Basic usage:
Submitting a generic form with fields for first name, last name, email address, and phone number:
from seleniumuser import User
user = User(browser_type="firefox")
user.get('https://somewebsite.com')
user.send_keys('//input[@id="first-name"]', 'Bill')
user.fill_next(['Billson', 'bill@bill.com', '5345548486'])
user.click('//button[@id="submit"]')
try:
user.wait_until(lambda: 'Submission Received' in user.text('//p[@id="confirmation-message"]'))
print('Submission success.')
except TimeoutError:
print('Submission failed.')
user.close_browser()
The User class supports being used with a context manager if you'd rather not worry about closing the browser before exiting the script:
from seleniumUser import User
with User(browser_type="firefox") as user:
user.get('https://somewebsite.com')
user.send_keys('//input[@id="first-name"]', 'Bill')
user.fill_next(['Billson', 'bill@bill.com', '5345548486'])
user.click('//button[@id="submit"]')
try:
user.wait_until(lambda: 'Submission Received' in user.text('//p[@id="confirmation-message"]'))
print('Submission success.')
except TimeoutError:
print('Submission failed.')
Metadata
Release files for seleniumuser 1.1.4
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 |
|---|---|---|---|---|
| seleniumuser-1.1.4.tar.gz | 9.4 kB | Without provenance | Details for seleniumuser-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seleniumuser-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for seleniumuser-1.1.4-py3-none-any.whl |
Total release size: 19.5 kB
Release files / seleniumuser-1.1.4.tar.gz
| Download URL | seleniumuser-1.1.4.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b105008558c8c5db0a0b38b5e13af41e3d24f506d8ec3eb902721932e6782215
|
|
BLAKE2b-256 checksum How to use checksums |
56434ad2dad1b40891302899e576c806400d27861dff509dfb2cdf65dc52ae18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / seleniumuser-1.1.4-py3-none-any.whl
| Download URL | seleniumuser-1.1.4-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4978672043fe7ad0fbc5661fad07a8c9382d3bff4616b51dad7c46a865ebe376
|
|
BLAKE2b-256 checksum How to use checksums |
7fb8558090e78dc3fdcbd42b5193c89b620d168a69fe87c42b25d6f5d2c21cb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Security for seleniumuser 1.1.4
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.