docs(dotnet): fix wrong snippets (#32484)

Fixes https://github.com/microsoft/playwright-dotnet/issues/2994
This commit is contained in:
Max Schmitt 2024-09-06 11:27:35 +02:00 committed by GitHub
parent 5d4a65b318
commit a8f67a42b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ assertThat(page).not().hasURL("error");
``` ```
```csharp ```csharp
await Expect(Page).Not.ToHaveURL("error"); await Expect(Page).Not.ToHaveURLAsync("error");
``` ```
## async method: PageAssertions.NotToHaveTitle ## async method: PageAssertions.NotToHaveTitle
@ -271,7 +271,7 @@ expect(page).to_have_title(re.compile(r".*checkout"))
``` ```
```csharp ```csharp
await Expect(Page).ToHaveTitle("Playwright"); await Expect(Page).ToHaveTitleAsync("Playwright");
``` ```
### param: PageAssertions.toHaveTitle.titleOrRegExp ### param: PageAssertions.toHaveTitle.titleOrRegExp
@ -320,7 +320,7 @@ expect(page).to_have_url(re.compile(".*checkout"))
``` ```
```csharp ```csharp
await Expect(Page).ToHaveURL(new Regex(".*checkout")); await Expect(Page).ToHaveURLAsync(new Regex(".*checkout"));
``` ```
### param: PageAssertions.toHaveURL.urlOrRegExp ### param: PageAssertions.toHaveURL.urlOrRegExp