highlight()
Highlights the given element on the page by drawing a red rectangle around it. This is useful for debugging purposes.
Examples
Section titled “Examples”await highlight('Get Started')await highlight(link('Get Started'))Parameters
Section titled “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
Section titled “Returns”| Type | Description |
|---|---|
Promise<void> |