chore: bring back dblclick alias (#6667)

This commit is contained in:
Pavel Feldman 2021-05-19 16:29:35 -07:00 committed by GitHub
parent 2ef47b95f2
commit ba637e6e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 2 deletions

View File

@ -200,6 +200,9 @@ 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,6 +248,9 @@ 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,6 +74,9 @@ 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,6 +682,9 @@ 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.

View File

@ -289,8 +289,6 @@ function toMemberName(member, options) {
* @returns {string} * @returns {string}
*/ */
function toTitleCase(name) { function toTitleCase(name) {
if (name === 'dblclick')
return 'DblClick';
return name.charAt(0).toUpperCase() + name.substring(1); return name.charAt(0).toUpperCase() + name.substring(1);
} }