You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a new locator that uses best practices for referencing the matched element, prioritizing test ids,
1811
+
aria roles, and other user-facing attributes over CSS selectors. This is useful for converting implementation-detail selectors into more resilient, human-readable locators.
Copy file name to clipboardExpand all lines: docs/src/api/class-page.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4212,6 +4212,24 @@ Page width in pixels.
4212
4212
4213
4213
Page height in pixels.
4214
4214
4215
+
## async method: Page.snapshotForAI
4216
+
* since: v1.59
4217
+
- returns: <[Object]>
4218
+
-`full` <[string]> Full accessibility snapshot of the page.
4219
+
-`incremental` ?<[string]> Incremental snapshot containing only changes since the last tracked snapshot, when using the [`option: Page.snapshotForAI.track`] option.
4220
+
4221
+
Returns an accessibility snapshot of the page optimized for AI consumption.
0 commit comments