Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/src/api/class-locator.md
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ Attribute name to get the value for.
## async method: Locator.hideHighlight
* since: v1.60

Hide element highlight added with Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses [`method: Locator.highlight`].
Hides the element highlight previously added by [`method: Locator.highlight`].

## async method: Locator.highlight
* since: v1.20
Expand All @@ -1500,13 +1500,13 @@ Highlight the corresponding element(s) on the screen. Useful for debugging, don'
### option: Locator.highlight.style
* since: v1.60
* langs: js
- `style` <[string]|[Object]<[string], [any]>>
- `style` <[string]|[Object]<[string], [string]|[number]>>

Inline CSS applied to the highlight overlay, e.g.

```js
await locator.highlight('outline: 2px dashed red');
await locator.highlight({ color: 'red' });
await locator.highlight({ style: 'outline: 2px dashed red' });
await locator.highlight({ style: { color: 'red' } });
```

### option: Locator.highlight.style
Expand Down
3 changes: 1 addition & 2 deletions packages/playwright-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14238,8 +14238,7 @@ export interface Locator {
}): Locator;

/**
* Hide element highlight added with Highlight the corresponding element(s) on the screen. Useful for debugging, don't
* commit the code that uses
* Hides the element highlight previously added by
* [locator.highlight([options])](https://playwright.dev/docs/api/class-locator#locator-highlight).
*/
hideHighlight(): Promise<void>;
Expand Down
3 changes: 1 addition & 2 deletions packages/playwright-core/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14238,8 +14238,7 @@ export interface Locator {
}): Locator;

/**
* Hide element highlight added with Highlight the corresponding element(s) on the screen. Useful for debugging, don't
* commit the code that uses
* Hides the element highlight previously added by
* [locator.highlight([options])](https://playwright.dev/docs/api/class-locator#locator-highlight).
*/
hideHighlight(): Promise<void>;
Expand Down
Loading