Classes
Methods
(async) atCursor(optionsopt) → {Promise.<void>}
Performs a mouse double-click at the current cursor position.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options | Object | <optional> | Additional options for the double-click action. |
Throws:
- Throws an error if the double-click action cannot be performed.
- Type
- Error
Returns:
A promise that resolves when the double-click occurs.
- Type:
- Promise.<void>
(async) bySelector(selector, optionsopt) → {Promise.<void>}
Performs a mouse double-click on an element matching a given CSS selector.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
selector | string | The CSS selector of the element to double-click. | |
options | Object | <optional> | Additional options for the double-click action. |
Throws:
- Throws an error if the element is not found.
- Type
- Error
Returns:
A promise that resolves when the double-click action is performed.
- Type:
- Promise.<void>
(async) byXpath(xpath, optionsopt) → {Promise.<void>}
Performs a mouse double-click on an element matching a given XPath selector.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
xpath | string | The XPath selector of the element to double-click. | |
options | Object | <optional> | Additional options for the double-click action. |
Throws:
- Throws an error if the element is not found.
- Type
- Error
Returns:
A promise that resolves when the double-click action is performed.
- Type:
- Promise.<void>