docs(dotnet): fix wrong snippets
This commit is contained in:
parent
5d4a65b318
commit
e18100c0ae
|
|
@ -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…
Reference in a new issue