Skip to content
Open
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
14 changes: 7 additions & 7 deletions docs/src/api/class-locator.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,15 @@ await page.getByRole('list').ariaSnapshotJSON();

This method returns the same tree as [`method: Locator.ariaSnapshot`], serialized as a JSON value instead of YAML markup.
The result is a list of nodes, each node being either a plain string with static text, or an object with the following properties:
* `role` <[string]> Aria role of the element.
* `name` <[string]> Accessible name of the element, if any.
* `text` <[string]> Text content of the element, when it is the only child.
* `children` <[Array]> Child nodes and text fragments.
* `role` Aria role of the element.
* `name` Accessible name of the element, if any.
* `text` Text content of the element, when it is the only child.
* `children` Child nodes and text fragments.
* Boolean and value properties for element state flags: `checked`, `disabled`, `expanded`, `active`, `invalid`, `level`, `pressed` and `selected`.
* Additional element properties, for example `url` for links and `placeholder` for text boxes.
* `ref` <[string]> Element reference for AI-optimized snapshots.
* `cursor` <[string]> Set to `"pointer"` for clickable elements in AI-optimized snapshots.
* `box` <[Object]> Bounding box of the element when [`option: Locator.ariaSnapshotJSON.boxes`] is set.
* `ref` Element reference for AI-optimized snapshots.
* `cursor` Set to `"pointer"` for clickable elements in AI-optimized snapshots.
* `box` Bounding box of the element when [`option: Locator.ariaSnapshotJSON.boxes`] is set.

### option: Locator.ariaSnapshotJSON.mode
* since: v1.63
Expand Down
Loading