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