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(dotnet): Improve some dotnet docs (#9265)
Darío Kondratiukddbd64e4df15
diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.mdindex 7ee8ba6265..1e63c9a888 100644--- a/docs/src/api/class-browsercontext.md+++ b/docs/src/api/class-browsercontext.md@@ -6,7 +6,7 @@ BrowserContexts provide a way to operate multiple independent browser sessions.If a page opens another page, e.g. with a `window.open` call, the popup will belong to the parent page's browsercontext.-Playwright allows creation of "incognito" browser contexts with `browser.newContext()` method. "Incognito" browser+Playwright allows creating "incognito" browser contexts with [`method: Browser.newContext`] method. "Incognito" browsercontexts don't write any browsing data to disk.```jsdiff --git a/docs/src/assertions.md b/docs/src/assertions.mdindex 98ac100554..4ee901dd46 100644--- a/docs/src/assertions.md+++ b/docs/src/assertions.md@@ -183,7 +183,7 @@ assert html == "<p>Result</p>"```csharpvar html = await page.InnerHTMLAsync("div.result");-Assert.Equals(html, "<p>Result</p>");+Assert.Equals("<p>Result</p>", html);```### API referencediff --git a/docs/src/core-concepts.md b/docs/src/core-concepts.mdindex 775a457992..1b9b7f99ac 100644--- a/docs/src/core-concepts.md+++ b/docs/src/core-concepts.md@@ -594,7 +594,7 @@ page.click('#free-month-promo >> text=Sign Up')```csharp// Click an element with text "Sign Up" inside of a #free-month-promo.-await page.Click("#free-month-promo >> text=Sign Up");+await page.ClickAsync("#free-month-promo >> text=Sign Up");``````jsdiff --git a/docs/src/emulation.md b/docs/src/emulation.mdindex f67d3187f3..a3b2b059a0 100644--- a/docs/src/emulation.md+++ b/docs/src/emulation.md@@ -330,7 +330,7 @@ context.grant_permissions(['notifications'], origin='https://skype.com')``````csharp-await context.GrantPermissionsAsync(new[] { "notifications" },origin: "https://skype.com");+await context.GrantPermissionsAsync(new[] { "notifications" }, origin: "https://skype.com");```Revoke all permissions:diff --git a/docs/src/network.md b/docs/src/network.mdindex 508abd0382..ce81a18910 100644--- a/docs/src/network.md+++ b/docs/src/network.md@@ -251,7 +251,7 @@ class Programawait using var browser = await playwright.Chromium.LaunchAsync();var page = await browser.NewPageAsync();page.Request += (_, request) => Console.WriteLine(">> " + request.Method + " " + request.Url);- page.Response += (_, response) => Console.WriteLine("<<" + response.Status + " " + response.Url);+ page.Response += (_, response) => Console.WriteLine("<< " + response.Status + " " + response.Url);await page.GotoAsync("https://example.com");}}diff --git a/types/types.d.ts b/types/types.d.tsindex dfb18256a6..5d9c5536b5 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -5813,8 +5813,9 @@ export interface Frame {* If a page opens another page, e.g. with a `window.open` call, the popup will belong to the parent page's browser* context.*- * Playwright allows creation of "incognito" browser contexts with `browser.newContext()` method. "Incognito" browser- * contexts don't write any browsing data to disk.+ * Playwright allows creating "incognito" browser contexts with+ * [browser.newContext([options])](https://playwright.dev/docs/api/class-browser#browser-new-context) method. "Incognito"+ * browser contexts don't write any browsing data to disk.** ```js* // Create a new incognito browser context