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
selenium-shortcuts-1.5.tar.gz
(1.7 kB
view hashes)