Skip to main content

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


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

Uploaded Source

File details

Details for the file selenium-shortcuts-2.3.tar.gz.

File metadata

  • Download URL: selenium-shortcuts-2.3.tar.gz
  • Upload date:
  • Size: 1.9 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.13 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

Hashes for selenium-shortcuts-2.3.tar.gz
Algorithm Hash digest
SHA256 aeeb7c2fbe1cbad749c2a5923c006c258d9e4846ad33f91482305f4469316046
MD5 1bf249568f2796392fb915af865d33b3
BLAKE2b-256 b9062b7cabe8710548903cdabef0998e95f430bae3b290035d7f6e78cbfeccbf

See more details on using hashes here.

Supported by

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