Skip to content

highlight()

Highlights the given element on the page by drawing a red rectangle around it. This is useful for debugging purposes.

Examples

await highlight('Get Started')
await highlight(link('Get Started'))

Parameters

Name Type Description
selector selector | string A selector of an element to highlight. If there are multiple elements satisfying the selector, the first will be highlighted.
args Array Proximity selectors

Returns

Type Description
Promise<void>