Function clickByXPath

  • Clicks on an element by Xpath.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      Xpath selector.

    • Optional options: ClickOptions

    Returns Promise<void>

    Remarks

    Also sends related events, such as mouseenter.

    Example

    await clickByXPath(ctx, '//button[@id= "my-button"]');
    

Generated using TypeDoc