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

Uploaded Source

File details

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

File metadata

  • Download URL: selenium_shortcuts-1.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.1.tar.gz
Algorithm Hash digest
SHA256 432f9dcd3a820afae17101df2cb654f71bd710f581a2cb985697f65f1a8d0a6b
MD5 1bf0f666a40e730d7ea7bccee08012e1
BLAKE2b-256 986f918f72890717e3701c2ce5e9c3e94cb8d5bdae019054a4c91ace3c47626b

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