Skip to content

Commit

Permalink
docs(dotnet): fix wrong snippets (#32484)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Sep 6, 2024
1 parent 5d4a65b commit a8f67a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/api/class-pageassertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ assertThat(page).not().hasURL("error");
```

```csharp
await Expect(Page).Not.ToHaveURL("error");
await Expect(Page).Not.ToHaveURLAsync("error");
```

## async method: PageAssertions.NotToHaveTitle
Expand Down Expand Up @@ -271,7 +271,7 @@ expect(page).to_have_title(re.compile(r".*checkout"))
```

```csharp
await Expect(Page).ToHaveTitle("Playwright");
await Expect(Page).ToHaveTitleAsync("Playwright");
```

### param: PageAssertions.toHaveTitle.titleOrRegExp
Expand Down Expand Up @@ -320,7 +320,7 @@ expect(page).to_have_url(re.compile(".*checkout"))
```

```csharp
await Expect(Page).ToHaveURL(new Regex(".*checkout"));
await Expect(Page).ToHaveURLAsync(new Regex(".*checkout"));
```

### param: PageAssertions.toHaveURL.urlOrRegExp
Expand Down

0 comments on commit a8f67a4

Please sign in to comment.