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)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file selenium-shortcuts-4.5.tar.gz.
File metadata
- Download URL: selenium-shortcuts-4.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca2f9e3b179cae21c0d123866ca1b97e90e75f144b2a284dd6e00637c49e524b
|
|
| MD5 |
87aadc17f496b64e45b1dee05c0d9451
|
|
| BLAKE2b-256 |
19cb124cdbe2721f7a2af559cfd8f01a212277c85ded835c6287597758939749
|