api(dotnet): remove some overrides (#6622)
This commit is contained in:
parent
691644666e
commit
7eca573eb4
|
|
@ -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();
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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`].
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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<string, string>(route.Request.Headers) { { "foo", "bar" } };
|
||||
headers.Remove("origin");
|
||||
route.ResumeAsync(headers);
|
||||
route.ContinueAsync(headers);
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -502,11 +502,11 @@ page.route("**/*", lambda route: route.continue_(method="POST"))
|
|||
await page.RouteAsync("**/*", async route => {
|
||||
var headers = new Dictionary<string, string>(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();
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue