microsoft/playwright-dotnet

[Docs]: Update the usage for Page assertions method - ToHaveTitle and ToHaveURL

Honyii opened this issue · 0 comments

Page(s)

page_assertions

Description

The documentation methods for ToHaveTitle and ToHaveURL in page assertions is incomplete. This is the code snippet for what we have now;
await Expect(Page).ToHaveTitle("Playwright");
await Expect(Page).ToHaveURL(new Regex(".*checkout"));

It should be updated to;
await Expect(Page).ToHaveTitleAsync("Playwright");
await Expect(Page).ToHaveURLAsync(new Regex(".*checkout"));