Selenium shortcut functions
Project description
selenium_shortcuts
Installation:
pip install selenium_shortcuts
Usage:
from selenium_shortcuts import setup
helper = setup(driver) # Put this after you define the webdriver
find, finds, click, text, send = helper.find, helper.finds, helper.click, helper.text, helper.send
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)
Project details
Release history Release notifications | RSS feed
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-1.3.tar.gz
.
File metadata
- Download URL: selenium_shortcuts-1.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca2e841a9b4bfa981dc96e256359441a8622d0823c98908ea31d49dfa800a8e |
|
MD5 | efd8d87aa4de8d73c56731b56c3610d8 |
|
BLAKE2b-256 | d7359222103f020bf10a7f85906e3a71062c3da7557740ba51eb80ce355c5925 |