Skip to main content

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


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.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file selenium_shortcuts-1.tar.gz.

File metadata

  • Download URL: selenium_shortcuts-1.tar.gz
  • Upload date:
  • Size: 1.6 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

Hashes for selenium_shortcuts-1.tar.gz
Algorithm Hash digest
SHA256 9403a0b4e8c5c53b9d91867437c9a695bce1a2f9e1b3c05d00b9fcf08867247f
MD5 3b7deeeca50c7e67fe235c270386ea21
BLAKE2b-256 0a5ca03a99398a903198c83f99063394519cc342f93c2d8fddd497a53573ff5e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page