diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index 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 browser context. -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" browser contexts don't write any browsing data to disk. ```js diff --git a/docs/src/assertions.md b/docs/src/assertions.md index 98ac100554..4ee901dd46 100644 --- a/docs/src/assertions.md +++ b/docs/src/assertions.md @@ -183,7 +183,7 @@ assert html == "

Result

" ```csharp var html = await page.InnerHTMLAsync("div.result"); -Assert.Equals(html, "

Result

"); +Assert.Equals("

Result

", html); ``` ### API reference diff --git a/docs/src/core-concepts.md b/docs/src/core-concepts.md index 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"); ``` ```js diff --git a/docs/src/emulation.md b/docs/src/emulation.md index 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.md index 508abd0382..ce81a18910 100644 --- a/docs/src/network.md +++ b/docs/src/network.md @@ -251,7 +251,7 @@ class Program await 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.ts index 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