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.5.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

webelement_highlighter-0.9.5-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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