A simple package to highlight webelements
Project description
WebElementHighlighter
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
Built Distribution
Close
Hashes for webelement_highlighter-0.9.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91a9816869040f15ff6cacc2f587fe774d1a2a4a75beab710b1e6e9f98d4941 |
|
MD5 | 89eda72f6344bf09b7347a267bd5b16b |
|
BLAKE2b-256 | 7b913a2392e4bf61796a6a14103adb455fc37111c8c08f7cc70080703c705ba1 |
Close
Hashes for webelement_highlighter-0.9.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd2fd1acb5c6eda9c2d5824a254d3f936006eb80eb9e6815ebbfa417fd8003cd |
|
MD5 | cdcdd096ada52c5b0e4e890f0ea2fc17 |
|
BLAKE2b-256 | 9edb25c7d7f1617d8b692e1d15ba67cad9ba6a5c84b924f0fdf57286bac1c8ea |