Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: bring back dblclick alias (#6667)

Pavel Feldmanba637e6e4174
diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md
index 858b86e469..c27cebc977 100644
--- a/docs/src/api/class-elementhandle.md
+++ b/docs/src/api/class-elementhandle.md
@@ -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
## 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 3663792e50..4e3c860f67 100644
--- a/docs/src/api/class-frame.md
+++ b/docs/src/api/class-frame.md
@@ -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.
## 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 bb2495829e..ad6e168d03 100644
--- a/docs/src/api/class-mouse.md
+++ b/docs/src/api/class-mouse.md
@@ -74,6 +74,9 @@ 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 3eaa3963a6..1a319b0e19 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -682,6 +682,9 @@ 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.
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js
index 159325095e..bb6c9ad0e5 100644
--- a/utils/doclint/generateDotnetApi.js
+++ b/utils/doclint/generateDotnetApi.js
@@ -289,8 +289,6 @@ function toMemberName(member, options) {
* @returns {string}
*/
function toTitleCase(name) {
- if (name === 'dblclick')
- return 'DblClick';
return name.charAt(0).toUpperCase() + name.substring(1);
}