Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/extensibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ button_count = page.locator("tag=button").count()
```csharp
// Register the engine. Selectors will be prefixed with "tag=".
// The script is evaluated in the page context.
await playwright.Selectors.Register("tag", new() {
await playwright.Selectors.RegisterAsync("tag", new() {
Script = @"
// Must evaluate to a selector engine instance.
{
Expand Down
4 changes: 2 additions & 2 deletions docs/src/mock.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ await page.RouteAsync("*/**/api/v1/fruits", async route => {
await page.GotoAsync("https://demo.playwright.dev/api-mocking");

// Assert that the Strawberry fruit is visible
await Expect(page.GetByTextAsync("Strawberry")).ToBeVisibleAsync();
await Expect(page.GetByText("Strawberry")).ToBeVisibleAsync();
```

```java
Expand Down Expand Up @@ -188,7 +188,7 @@ await page.RouteAsync("*/**/api/v1/fruits", async (route) => {
await page.GotoAsync("https://demo.playwright.dev/api-mocking");

// Assert that the Loquat fruit is visible
await Expect(page.GetByTextAsync("Loquat", new () { Exact = true })).ToBeVisibleAsync();
await Expect(page.GetByText("Loquat", new () { Exact = true })).ToBeVisibleAsync();
```

```java
Expand Down
2 changes: 1 addition & 1 deletion docs/src/navigations.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ page.wait_for_url("**/login")

```csharp
await page.GetByText("Click me").ClickAsync();
await page.WaitForURL("**/login");
await page.WaitForURLAsync("**/login");
```

## Back/Forward Cache (BFCache)
Expand Down