mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(dotnet): fix wrong snippets (#32484)
Fixes https://github.com/microsoft/playwright-dotnet/issues/2994
This commit is contained in:
parent
5d4a65b318
commit
a8f67a42b8
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user