selenium-shortcuts
Shortcut functions for Python selenium
Installation:
pip install selenium-shortcuts
Usage:
from selenium_shortcuts import setup_shortcuts
helper = setup_shortcuts(browser='uc') # Start a browser on port 9222 or reconnect to existing browser on port 9222 with undetected-chromedriver
driver, find, finds, click, text, send, get, check = helper.driver, helper.find, helper.finds, helper.click, helper.text, helper.send, helper.get, helper.check
info = text('#info')
print(info)
click('#submit')
info = find('#info')
print(info.text)
info.click()
items = finds('.items')
for item in items:
print(item.text)
info, classes = find('#info', attribute='class')
print(classes)
Release files for selenium-shortcuts 4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| selenium-shortcuts-4.5.tar.gz | 3.2 kB | Details |
Release files / selenium-shortcuts-4.5.tar.gz
| Download URL | selenium-shortcuts-4.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca2f9e3b179cae21c0d123866ca1b97e90e75f144b2a284dd6e00637c49e524b
|
|
BLAKE2b-256 checksum How to use checksums |
19cb124cdbe2721f7a2af559cfd8f01a212277c85ded835c6287597758939749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|