ContextClick

Provides functionality to perform a context click (right-click) on elements in a web page.

Classes

ContextClick

Methods

(async) run(selector) → {Promise.<void>}

Performs a context click (right-click) on an element using a unified selector string.
Parameters:
NameTypeDescription
selectorstringThe selector string. CSS by default, or use a prefix.
Throws:
Throws an error if the element is not found.
Type
Error
Returns:
Type: 
Promise.<void>