Function triggerContextMenu

  • Triggers contextmenu event on element.

    Parameters

    • ctx: Context

      Puppeteer context object.

    • selector: string

      XPath selector.

    • Optional options: WaitForSelectorOptions & ClickOptions

    Returns Promise<void>

    Example

    await triggerContextMenu(page, '//*[@id="rcnt"]');
    

Generated using TypeDoc