Skip to main content

highlight

def highlight( self, color: Union[str, Color] = Color.Yellow, duration: int = 3,
timeout: int = 30 ) -> None

Highlight the target element.

Parameters:
color: str | Color
The color of the highlighed rectangle, the default value is Yellow.
duration: int
The duration for highlighting the element, the unit is second, and the default value is 3 seconds.
timeout: int
Timeout for the operation, the unit is second, and the default value is 30 seconds.

Returns:
None

Example:


  • Highlight target web element
from clicknium import clicknium as cc, locator, ui

ui(locator.chrome.bing.search_sb_form_q).highlight()

The following item will be shown on the browser:
highlight