Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(csharp): fix nonexistent method names in guide examples (#42507)
Super-Eric8c47f596edeb
diff --git a/docs/src/extensibility.md b/docs/src/extensibility.mdindex ca423ca6ca..e44b6214ab 100644--- a/docs/src/extensibility.md+++ b/docs/src/extensibility.md@@ -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.{diff --git a/docs/src/mock.md b/docs/src/mock.mdindex 9734e300d7..b5580b5c25 100644--- a/docs/src/mock.md+++ b/docs/src/mock.md@@ -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@@ -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();``````javadiff --git a/docs/src/navigations.md b/docs/src/navigations.mdindex 95c374a082..b78065357c 100644--- a/docs/src/navigations.md+++ b/docs/src/navigations.md@@ -147,7 +147,7 @@ page.wait_for_url("**/login")```csharpawait page.GetByText("Click me").ClickAsync();-await page.WaitForURL("**/login");+await page.WaitForURLAsync("**/login");```## Back/Forward Cache (BFCache)