Function clickByText

  • Clicks an element by its text content.

    Parameters

    • ctx: Context
    • text: string

      Text to be clicked on.

    • Optional filterOptions: FilterOptions

      Filter the XPath selector.

    Returns Promise<void>

    Example

    await clickText(page, 'Save and submit');
    

Generated using TypeDoc