Skip to main content

PyWizardLite automates downloading the correct Chrome driver and generates XPath expressions for visible elements using their text.

Reason this release was yanked:

Alpha Version

Project description

PyWizardLite

PyWizardLite is a python script that automates the process of downloading the suitable version of chrome driver for the chrome version installed on the machine. It also has the functionality to generate the xpath of an element on a webpage using the text of the element and the it will wait for the element to be visible.

Requirements

Modules - selenium, requests

python -m pip install selenium requests

Installation

python -m pip install pywizardlite

Usage

from pywizardlite import PyWizardLite

# Download suitable version of chrome driver for the chrome version installed on the machine
PyWizardLite().setup_chrome_web_driver(
    proxy_url = "https://proxy.com:8080"
)


# Generate XPath of an element using String
xpath = PyWizardLite().generate_string_xpath(
    driver = driver, text = "Some Text"
)
print(xpath)
# Output could be //*[@id="some_id"] or None


# Wait for an element to be visible
PyWizardLite().wait_until_element_is_visible(
    driver = driver, element_by = "ID", element = "some_id"
)

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

PyWizardLite-0.0.3.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file PyWizardLite-0.0.3.tar.gz.

File metadata

  • Download URL: PyWizardLite-0.0.3.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for PyWizardLite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 da97a3c58a6b338733590a8e6a0d1e43b16d561c75e6153ecec1e30c33596f6e
MD5 c1a484abd2731ecb051b5dadb1451a95
BLAKE2b-256 60d3011f1960227bde9cfd3aadc9032bed12f3567f1e3c7a05861d9bbd1bf8be

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