seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.46k stars 909 forks source link

Improvements to highlighting elements #2747

Closed mdmintz closed 2 months ago

mdmintz commented 2 months ago

Improvements to highlighting elements

Allow self.highlight(selector) to also accept a WebElement for the selector.

Add self.highlight_elements(selector) to highlight all elements that match the given selector.

Summary:

self.highlight(selector, by="css selector", loops=4, scroll=True, timeout=None)  # Accepts WebElement

self.highlight_elements(selector, by="css selector", loops=4, scroll=True, limit=0)
mdmintz commented 2 months ago

This was resolved in 4.26.3 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.26.3