Skip to content

highlight()

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

await highlight('Get Started')
await highlight(link('Get Started'))
NameTypeDescription
selectorselector | stringA selector of an element to highlight. If there are multiple elements satisfying the selector, the first will be highlighted.
argsArrayProximity selectors
TypeDescription
Promise<void>