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
32 changes: 3 additions & 29 deletions dotnet/docs/api/class-locatorassertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ await Expect(locator).ToHaveAccessibleNameAsync("Save to disk");
```

**Arguments**
- `name` [string] | [Regex] | [IEnumerable]&lt;[string] | [Regex]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>
- `name` [string] | [Regex]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>

Expected accessible name.
- `options` `LocatorAssertionsToHaveAccessibleNameOptions?` *(optional)*
Expand Down Expand Up @@ -811,9 +811,9 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex(

---

### ToMatchAriaSnapshotAsync(expected, options) {#locator-assertions-to-match-aria-snapshot-1}
### ToMatchAriaSnapshotAsync {#locator-assertions-to-match-aria-snapshot-1}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.49</font><x-search>locatorAssertions.ToMatchAriaSnapshotAsync(expected, options)</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.49</font><x-search>locatorAssertions.ToMatchAriaSnapshotAsync</x-search>

Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).

Expand All @@ -839,32 +839,6 @@ await Expect(page.Locator("body")).ToMatchAriaSnapshotAsync(@"

---

### ToMatchAriaSnapshotAsync(options) {#locator-assertions-to-match-aria-snapshot-2}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.50</font><x-search>locatorAssertions.ToMatchAriaSnapshotAsync(options)</x-search>

Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).

**Usage**

```csharp
await Expect(page.Locator("body")).ToMatchAriaSnapshotAsync(new { Path = "/path/to/snapshot.yml" });
```

**Arguments**
- `options` `LocatorAssertionsToMatchAriaSnapshotOptions?` *(optional)*
- `Path` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-option-path"/><a href="#locator-assertions-to-match-aria-snapshot-2-option-path" class="list-anchor">#</a>

Path to the YAML snapshot file.
- `Timeout` [float]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-option-timeout"/><a href="#locator-assertions-to-match-aria-snapshot-2-option-timeout" class="list-anchor">#</a>

Time to retry the assertion for in milliseconds. Defaults to `5000`.

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-return"/><a href="#locator-assertions-to-match-aria-snapshot-2-return" class="list-anchor">#</a>

---

## Properties

### Not {#locator-assertions-not}
Expand Down
32 changes: 3 additions & 29 deletions java/docs/api/class-locatorassertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ assertThat(locator).hasAccessibleName("Save to disk");
```

**Arguments**
- `name` [String] | [Pattern] | [List]&lt;[String] | [Pattern]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>
- `name` [String] | [Pattern]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>

Expected accessible name.
- `options` `LocatorAssertions.HasAccessibleNameOptions` *(optional)*
Expand Down Expand Up @@ -788,9 +788,9 @@ assertThat(

---

### matchesAriaSnapshot(expected) {#locator-assertions-to-match-aria-snapshot-1}
### matchesAriaSnapshot {#locator-assertions-to-match-aria-snapshot-1}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.49</font><x-search>locatorAssertions.matchesAriaSnapshot(expected)</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.49</font><x-search>locatorAssertions.matchesAriaSnapshot</x-search>

Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).

Expand All @@ -816,32 +816,6 @@ assertThat(page.locator("body")).matchesAriaSnapshot("""

---

### matchesAriaSnapshot(options) {#locator-assertions-to-match-aria-snapshot-2}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.50</font><x-search>locatorAssertions.matchesAriaSnapshot(options)</x-search>

Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).

**Usage**

```java
assertThat(page.locator("body")).matchesAriaSnapshot(new LocatorAssertions.MatchesAriaSnapshotOptions().setPath("/path/to/snapshot.yml"));
```

**Arguments**
- `options` `LocatorAssertions.MatchesAriaSnapshotOptions` *(optional)*
- `setPath` [String] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-option-path"/><a href="#locator-assertions-to-match-aria-snapshot-2-option-path" class="list-anchor">#</a>

Path to the YAML snapshot file.
- `setTimeout` [double] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-option-timeout"/><a href="#locator-assertions-to-match-aria-snapshot-2-option-timeout" class="list-anchor">#</a>

Time to retry the assertion for in milliseconds. Defaults to `5000`.

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-return"/><a href="#locator-assertions-to-match-aria-snapshot-2-return" class="list-anchor">#</a>

---

## Properties

### not() {#locator-assertions-not}
Expand Down
2 changes: 1 addition & 1 deletion nodejs/docs/api/class-locatorassertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ await expect(locator).toHaveAccessibleName('Save to disk');
```

**Arguments**
- `name` [string] | [RegExp] | [Array]&lt;[string] | [RegExp]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>
- `name` [string] | [RegExp]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>

Expected accessible name.
- `options` [Object] *(optional)*
Expand Down
51 changes: 3 additions & 48 deletions python/docs/api/class-locatorassertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ await expect(locator).to_have_accessible_name("Save to disk")
</Tabs>

**Arguments**
- `name` [str] | [Pattern] | [List]\[[str] | [Pattern]\]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>
- `name` [str] | [Pattern]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-name"/><a href="#locator-assertions-to-have-accessible-name-option-name" class="list-anchor">#</a>

Expected accessible name.
- `ignore_case` [bool] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-have-accessible-name-option-ignore-case"/><a href="#locator-assertions-to-have-accessible-name-option-ignore-case" class="list-anchor">#</a>
Expand Down Expand Up @@ -2124,9 +2124,9 @@ await expect(locator).to_have_values([re.compile(r"R"), re.compile(r"G")])

---

### to_match_aria_snapshot(expected) {#locator-assertions-to-match-aria-snapshot-1}
### to_match_aria_snapshot {#locator-assertions-to-match-aria-snapshot-1}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.49</font><x-search>locatorAssertions.to_match_aria_snapshot(expected)</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.49</font><x-search>locatorAssertions.to_match_aria_snapshot</x-search>

Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).

Expand Down Expand Up @@ -2173,51 +2173,6 @@ await expect(page.locator('body')).to_match_aria_snapshot('''
**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-1-return"/><a href="#locator-assertions-to-match-aria-snapshot-1-return" class="list-anchor">#</a>

---

### to_match_aria_snapshot(**kwargs) {#locator-assertions-to-match-aria-snapshot-2}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.50</font><x-search>locatorAssertions.to_match_aria_snapshot(**kwargs)</x-search>

Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.mdx).

**Usage**

<Tabs
groupId="python-flavor"
defaultValue="sync"
values={[
{label: 'Sync', value: 'sync'},
{label: 'Async', value: 'async'}
]
}>
<TabItem value="sync">

```py
expect(page.locator('body')).to_match_aria_snapshot(path='/path/to/snapshot.yml')
```

</TabItem>
<TabItem value="async">

```py
await expect(page.locator('body')).to_match_aria_snapshot(path='/path/to/snapshot.yml')
```

</TabItem>
</Tabs>

**Arguments**
- `path` [str] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-option-path"/><a href="#locator-assertions-to-match-aria-snapshot-2-option-path" class="list-anchor">#</a>

Path to the YAML snapshot file.
- `timeout` [float] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-option-timeout"/><a href="#locator-assertions-to-match-aria-snapshot-2-option-timeout" class="list-anchor">#</a>

Time to retry the assertion for in milliseconds. Defaults to `5000`.

**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-assertions-to-match-aria-snapshot-2-return"/><a href="#locator-assertions-to-match-aria-snapshot-2-return" class="list-anchor">#</a>


[Accessibility]: /api/class-accessibility.mdx "Accessibility"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
Expand Down
Loading