Skip to main content

A simple package to highlight webelements

Project description

WebElementHighlighter

Python linting License: MIT

WebElementHighlighter is library to highlight WebElements. It was made to use it on automated tests, specially when you want to highlight errors on a webpage.

Features.

  • You can make WebElements blink changing their background and border styles.
  • You can change the background style of WebElements.
  • You can change the border styles of WebElements.

How to use.

from webelement_highlighter import WebElementHighlighter
from selenium import webdriver

driver = webdriver.Chrome()
driver.get("https://www.w3schools.com/js/default.asp")

wh = WebElementHighlighter(driver)

we = driver.find_element_by_id("topnavbtn_references")
wes = driver.find_elements_by_class_name("w3-col")

wh.make_it_blink(we)
wh.make_them_blink(wes, times=20)

wh.highlight_element(we)
wh.highlight_elements(wes, stop=True)

How to install.

pip install webelement_highlighter

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

webelement_highlighter-0.9.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webelement_highlighter-0.9.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file webelement_highlighter-0.9.1.tar.gz.

File metadata

  • Download URL: webelement_highlighter-0.9.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

File hashes

Hashes for webelement_highlighter-0.9.1.tar.gz
Algorithm Hash digest
SHA256 2e77f94ea58ae6c5f3476b9c331f29c61575b86bc11ecedc05bd9a0a1556e042
MD5 19fef0d4dafc7f188a2028f0fa8cbd2f
BLAKE2b-256 3a36db731eab6fc3f45f6395b75b620931bceee108b1a7c1339a64fb79f14980

See more details on using hashes here.

File details

Details for the file webelement_highlighter-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: webelement_highlighter-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

File hashes

Hashes for webelement_highlighter-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa46a139472b8ee10d5aac65510bddfd93c04220ab95cddff04831ea956bac98
MD5 daa4b8a686639f18bf09658b04120720
BLAKE2b-256 93bf6cdde1af45023f3abdbe8dfad295f93a4b83fc44174be081c7d77b3e0237

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