From 29d44e41c91740c4ee2e93fc3e103dd9c66fa3a7 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 16 Oct 2024 11:36:06 +0200 Subject: [PATCH] chore: fix ToT roll --- dotnet/docs/api/class-locator.mdx | 43 ++++++++++ dotnet/docs/api/class-locatorassertions.mdx | 24 ++++++ dotnet/docs/api/class-websocketroute.mdx | 40 +++++++--- dotnet/docs/locators.mdx | 2 +- dotnet/docs/mock.mdx | 29 +++++++ dotnet/docs/network.mdx | 6 +- java/docs/api/class-locator.mdx | 43 ++++++++++ java/docs/api/class-locatorassertions.mdx | 24 ++++++ java/docs/api/class-websocketroute.mdx | 22 ++++-- java/docs/locators.mdx | 2 +- java/docs/mock.mdx | 29 +++++++ java/docs/network.mdx | 6 +- nodejs/docs/api/class-locator.mdx | 49 ++++++++++++ nodejs/docs/api/class-locatorassertions.mdx | 28 +++++++ nodejs/docs/api/class-websocketroute.mdx | 19 +++-- nodejs/docs/ci.mdx | 20 ++--- nodejs/docs/docker.mdx | 16 ++-- nodejs/docs/locators.mdx | 2 +- nodejs/docs/mock.mdx | 29 +++++++ nodejs/docs/network.mdx | 6 +- python/docs/api/class-locator.mdx | 63 +++++++++++++++ python/docs/api/class-locatorassertions.mdx | 48 +++++++++++ python/docs/api/class-websocketroute.mdx | 49 ++++++++++-- python/docs/locators.mdx | 2 +- python/docs/mock.mdx | 88 +++++++++++++++++++++ python/docs/network.mdx | 6 +- src/format_csharp.js | 4 +- 27 files changed, 639 insertions(+), 60 deletions(-) diff --git a/dotnet/docs/api/class-locator.mdx b/dotnet/docs/api/class-locator.mdx index 8465be00a6..c921401126 100644 --- a/dotnet/docs/api/class-locator.mdx +++ b/dotnet/docs/api/class-locator.mdx @@ -111,6 +111,49 @@ var button = page.GetByRole(AriaRole.Button).And(page.GetByTitle("Subscribe")); --- +### AriaSnapshotAsync {#locator-aria-snapshot} + +Added in: v1.49locator.AriaSnapshotAsync + +Captures the aria snapshot of the given element. See [Expect(Locator).ToMatchAriaSnapshotAsync()](/api/class-locatorassertions.mdx#locator-assertions-to-match-aria-snapshot) for the corresponding assertion. + +**Usage** + +```csharp +await page.GetByRole(AriaRole.Link).AriaSnapshotAsync(); +``` + +**Returns** +- [string]# + +**Details** + +This method captures the aria snapshot of the given element. The snapshot is a string that represents the state of the element and its children. The snapshot can be used to assert the state of the element in the test, or to compare it to state in the future. + +The ARIA snapshot is represented using [YAML](https://yaml.org/spec/1.2.2/) markup language: +* The keys of the objects are the roles and optional accessible names of the elements. +* The values are either text content or an array of child elements. +* Generic static text can be represented with the `text` key. + +Below is the HTML markup and the respective ARIA snapshot: + +```html +