api(dotnet): remove some overrides (#6622)

This commit is contained in:
Pavel Feldman 2021-05-17 20:10:32 -07:00 committed by GitHub
parent 691644666e
commit 7eca573eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 21 deletions

View file

@ -367,8 +367,6 @@ The default browser context cannot be closed.
::: :::
## async method: BrowserContext.cookies ## async method: BrowserContext.cookies
* langs:
- alias-csharp: GetCookiesAsync
- returns: <[Array]<[Object]>> - returns: <[Array]<[Object]>>
- `name` <[string]> - `name` <[string]>
- `value` <[string]> - `value` <[string]>
@ -992,7 +990,7 @@ await page.RouteAsync("/api/**", async r =>
if (r.Request.PostData.Contains("my-string")) if (r.Request.PostData.Contains("my-string"))
await r.FulfillAsync(body: "mocked-data"); await r.FulfillAsync(body: "mocked-data");
else else
await r.ResumeAsync(); await r.ContinueAsync();
}); });
``` ```

View file

@ -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 Returns the content frame for element handles referencing iframe nodes, or `null` otherwise
## async method: ElementHandle.dblclick ## async method: ElementHandle.dblclick
* langs:
- alias-csharp: DblClickAsync
This method double clicks the element by performing the following steps: 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. Wait for [actionability](./actionability.md) checks on the element, unless [`option: force`] option is set.
1. Scroll the element into view if needed. 1. Scroll the element into view if needed.

View file

@ -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. Gets the full HTML contents of the frame, including the doctype.
## async method: Frame.dblclick ## async method: Frame.dblclick
* langs:
- alias-csharp: DblClickAsync
This method double clicks an element matching [`param: selector`] by performing the following steps: 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 1. Find an element matching [`param: selector`]. If there is none, wait until a matching element is attached to
the DOM. the DOM.

View file

@ -74,9 +74,6 @@ Shortcut for [`method: Mouse.move`], [`method: Mouse.down`], [`method: Mouse.up`
### option: Mouse.click.delay = %%-input-down-up-delay-%% ### option: Mouse.click.delay = %%-input-down-up-delay-%%
## async method: Mouse.dblclick ## async method: Mouse.dblclick
* langs:
- alias-csharp: DblClickAsync
Shortcut for [`method: Mouse.move`], [`method: Mouse.down`], [`method: Mouse.up`], [`method: Mouse.down`] and Shortcut for [`method: Mouse.move`], [`method: Mouse.down`], [`method: Mouse.up`], [`method: Mouse.down`] and
[`method: Mouse.up`]. [`method: Mouse.up`].

View file

@ -682,9 +682,6 @@ Only available for Chromium atm.
Browser-specific Coverage implementation. See [Coverage](#class-coverage) for more details. Browser-specific Coverage implementation. See [Coverage](#class-coverage) for more details.
## async method: Page.dblclick ## async method: Page.dblclick
* langs:
- alias-csharp: DblClickAsync
This method double clicks an element matching [`param: selector`] by performing the following steps: 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 1. Find an element matching [`param: selector`]. If there is none, wait until a matching element is attached to
the DOM. the DOM.
@ -2456,7 +2453,7 @@ await page.RouteAsync("/api/**", async r =>
if (r.Request.PostData.Contains("my-string")) if (r.Request.PostData.Contains("my-string"))
await r.FulfillAsync(body: "mocked-data"); await r.FulfillAsync(body: "mocked-data");
else else
await r.ResumeAsync(); await r.ContinueAsync();
}); });
``` ```

View file

@ -30,7 +30,6 @@ Optional error code. Defaults to `failed`, could be one of the following:
## async method: Route.continue ## async method: Route.continue
* langs: * langs:
- alias-csharp: ResumeAsync
- alias-java: resume - alias-java: resume
- alias-python: continue_ - alias-python: continue_
@ -89,7 +88,7 @@ await page.RouteAsync("**/*", route =>
{ {
var headers = new Dictionary<string, string>(route.Request.Headers) { { "foo", "bar" } }; var headers = new Dictionary<string, string>(route.Request.Headers) { { "foo", "bar" } };
headers.Remove("origin"); headers.Remove("origin");
route.ResumeAsync(headers); route.ContinueAsync(headers);
}); });
``` ```

View file

@ -502,11 +502,11 @@ page.route("**/*", lambda route: route.continue_(method="POST"))
await page.RouteAsync("**/*", async route => { await page.RouteAsync("**/*", async route => {
var headers = new Dictionary<string, string>(route.Request.Headers.ToDictionary(x => x.Key, x => x.Value)); var headers = new Dictionary<string, string>(route.Request.Headers.ToDictionary(x => x.Key, x => x.Value));
headers.Remove("X-Secret"); headers.Remove("X-Secret");
await route.ResumeAsync(headers: headers); await route.ContinueAsync(headers: headers);
}); });
// Continue requests as POST. // 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. 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)) if ("image".Equals(route.Request.ResourceType))
await route.AbortAsync(); await route.AbortAsync();
else else
await route.ResumeAsync(); await route.ContinueAsync();
}); });
``` ```

View file

@ -238,6 +238,8 @@ function toMemberName(member, options) {
* @returns {string} * @returns {string}
*/ */
function toTitleCase(name) { function toTitleCase(name) {
if (name === 'dblclick')
return 'DblClick';
name = name.replace(/(HTTP[S]?)/g, (m, g) => { name = name.replace(/(HTTP[S]?)/g, (m, g) => {
return g[0].toUpperCase() + g.substring(1).toLowerCase(); return g[0].toUpperCase() + g.substring(1).toLowerCase();
}); });