Selenium shortcut functions
Project description
selenium-shortcuts
Shortcut functions for Python selenium
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.7.tar.gz
.
File metadata
- Download URL: selenium-shortcuts-1.7.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.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad6b2dfb82b2c54eacf3c754d4fbfbcf57770fe1b5111a03617d6350799e820 |
|
MD5 | 061d28ce4161195b38a3b2d8d22bdb3c |
|
BLAKE2b-256 | 3a3a838a5a2607411c9b0d971416183b5d554f7c0b32e7467e7d8ff2e18eb711 |