Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtorres90/webelement_highlighter
a simple library to highlight WebElements
https://github.com/rtorres90/webelement_highlighter
python qa selenium selenium-webdriver testing webdriver webelement
Last synced: 4 months ago
JSON representation
a simple library to highlight WebElements
- Host: GitHub
- URL: https://github.com/rtorres90/webelement_highlighter
- Owner: rtorres90
- License: mit
- Created: 2017-03-31T20:03:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T20:11:36.000Z (almost 4 years ago)
- Last Synced: 2024-09-28T09:21:51.595Z (4 months ago)
- Topics: python, qa, selenium, selenium-webdriver, testing, webdriver, webelement
- Language: Python
- Size: 21.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WebElementHighlighter
=====================
[![Python linting](https://github.com/rtorres90/webelement_highlighter/actions/workflows/python-package.yml/badge.svg?branch=master)](https://github.com/rtorres90/webelement_highlighter/actions/workflows/python-package.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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.
-----------
```python
from webelement_highlighter import WebElementHighlighter
from selenium import webdriverdriver = 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
```