diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index 71bf315577..949880415a 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -367,8 +367,6 @@ The default browser context cannot be closed. ::: ## async method: BrowserContext.cookies -* langs: - - alias-csharp: GetCookiesAsync - returns: <[Array]<[Object]>> - `name` <[string]> - `value` <[string]> @@ -992,7 +990,7 @@ await page.RouteAsync("/api/**", async r => if (r.Request.PostData.Contains("my-string")) await r.FulfillAsync(body: "mocked-data"); else - await r.ResumeAsync(); + await r.ContinueAsync(); }); ``` diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index c27cebc977..858b86e469 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -200,9 +200,6 @@ When all steps combined have not finished during the specified [`option: timeout Returns the content frame for element handles referencing iframe nodes, or `null` otherwise ## async method: ElementHandle.dblclick -* langs: - - alias-csharp: DblClickAsync - This method double clicks the element by performing the following steps: 1. Wait for [actionability](./actionability.md) checks on the element, unless [`option: force`] option is set. 1. Scroll the element into view if needed. diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.md index 4e3c860f67..3663792e50 100644 --- a/docs/src/api/class-frame.md +++ b/docs/src/api/class-frame.md @@ -248,9 +248,6 @@ When all steps combined have not finished during the specified [`option: timeout Gets the full HTML contents of the frame, including the doctype. ## async method: Frame.dblclick -* langs: - - alias-csharp: DblClickAsync - This method double clicks an element matching [`param: selector`] by performing the following steps: 1. Find an element matching [`param: selector`]. If there is none, wait until a matching element is attached to the DOM. diff --git a/docs/src/api/class-mouse.md b/docs/src/api/class-mouse.md index ad6e168d03..bb2495829e 100644 --- a/docs/src/api/class-mouse.md +++ b/docs/src/api/class-mouse.md @@ -74,9 +74,6 @@ Shortcut for [`method: Mouse.move`], [`method: Mouse.down`], [`method: Mouse.up` ### option: Mouse.click.delay = %%-input-down-up-delay-%% ## async method: Mouse.dblclick -* langs: - - alias-csharp: DblClickAsync - Shortcut for [`method: Mouse.move`], [`method: Mouse.down`], [`method: Mouse.up`], [`method: Mouse.down`] and [`method: Mouse.up`]. diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 8af8ed65ca..8c83d6576d 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -682,9 +682,6 @@ Only available for Chromium atm. Browser-specific Coverage implementation. See [Coverage](#class-coverage) for more details. ## async method: Page.dblclick -* langs: - - alias-csharp: DblClickAsync - This method double clicks an element matching [`param: selector`] by performing the following steps: 1. Find an element matching [`param: selector`]. If there is none, wait until a matching element is attached to the DOM. @@ -2456,7 +2453,7 @@ await page.RouteAsync("/api/**", async r => if (r.Request.PostData.Contains("my-string")) await r.FulfillAsync(body: "mocked-data"); else - await r.ResumeAsync(); + await r.ContinueAsync(); }); ``` diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md index 19db4c58ec..7cce712ac2 100644 --- a/docs/src/api/class-route.md +++ b/docs/src/api/class-route.md @@ -30,7 +30,6 @@ Optional error code. Defaults to `failed`, could be one of the following: ## async method: Route.continue * langs: - - alias-csharp: ResumeAsync - alias-java: resume - alias-python: continue_ @@ -89,7 +88,7 @@ await page.RouteAsync("**/*", route => { var headers = new Dictionary(route.Request.Headers) { { "foo", "bar" } }; headers.Remove("origin"); - route.ResumeAsync(headers); + route.ContinueAsync(headers); }); ``` diff --git a/docs/src/network.md b/docs/src/network.md index c6d4e9a544..fd5439d1da 100644 --- a/docs/src/network.md +++ b/docs/src/network.md @@ -502,11 +502,11 @@ page.route("**/*", lambda route: route.continue_(method="POST")) await page.RouteAsync("**/*", async route => { var headers = new Dictionary(route.Request.Headers.ToDictionary(x => x.Key, x => x.Value)); headers.Remove("X-Secret"); - await route.ResumeAsync(headers: headers); + await route.ContinueAsync(headers: headers); }); // Continue requests as POST. -await page.RouteAsync("**/*", async route => await route.ResumeAsync(method: "POST")); +await page.RouteAsync("**/*", async route => await route.ContinueAsync(method: "POST")); ``` You can continue requests with modifications. Example above removes an HTTP header from the outgoing requests. @@ -557,7 +557,7 @@ await page.RouteAsync("**/*", async route => { if ("image".Equals(route.Request.ResourceType)) await route.AbortAsync(); else - await route.ResumeAsync(); + await route.ContinueAsync(); }); ``` diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js index c942c1131a..f1cf4400c5 100644 --- a/utils/doclint/generateDotnetApi.js +++ b/utils/doclint/generateDotnetApi.js @@ -238,6 +238,8 @@ function toMemberName(member, options) { * @returns {string} */ function toTitleCase(name) { + if (name === 'dblclick') + return 'DblClick'; name = name.replace(/(HTTP[S]?)/g, (m, g) => { return g[0].toUpperCase() + g.substring(1).toLowerCase(); });