From 931121dc6f1ce8d672ce2bd5845220203cb98920 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 7 Aug 2026 14:59:13 +0200 Subject: [PATCH] docs(locator): drop type markup from ariaSnapshotJSON details (#42136) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fd622800-f8e4-4a94-8f6d-73bdacd2f1d5 --- docs/src/api/class-locator.md | 14 +++++++------- packages/playwright-client/types/types.d.ts | 14 +++++++------- packages/playwright-core/types/types.d.ts | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index 7a6d5957ce2de..46dcf7c955521 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -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 diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts index bf6569d6cd5aa..48f2fb92932ac 100644 --- a/packages/playwright-client/types/types.d.ts +++ b/packages/playwright-client/types/types.d.ts @@ -14413,16 +14413,16 @@ export interface Locator { * [locator.ariaSnapshot([options])](https://playwright.dev/docs/api/class-locator#locator-aria-snapshot), 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 + * - `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 * [`boxes`](https://playwright.dev/docs/api/class-locator#locator-aria-snapshot-json-option-boxes) is set. * @param options */ diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index bf6569d6cd5aa..48f2fb92932ac 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -14413,16 +14413,16 @@ export interface Locator { * [locator.ariaSnapshot([options])](https://playwright.dev/docs/api/class-locator#locator-aria-snapshot), 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 + * - `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 * [`boxes`](https://playwright.dev/docs/api/class-locator#locator-aria-snapshot-json-option-boxes) is set. * @param options */