Class ElementHelper

Hierarchy

  • ElementHelper

Constructors

Properties

page: Page

Methods

  • Parameters

    • selector: string

    Returns Promise<void>

  • Parameters

    • selector: string

    Returns Promise<void>

  • Parameters

    • locator: Locator

    Returns Promise<void>

  • Parameters

    • page: Page
    • selector: string

    Returns Promise<boolean>

  • Get the count of all the elements, iterate through the elements and return array of the results

    Type Parameters

    • T

    Parameters

    • locator: Locator
    • action: ((currentLocator) => Promise<T>)
        • (currentLocator): Promise<T>
        • Parameters

          • currentLocator: Locator

          Returns Promise<T>

    Returns Promise<T[]>

  • Parameters

    • selector: string
    • attributeName: string

    Returns Promise<string>

  • Parameters

    • selector: string

    Returns Promise<number>

  • Parameters

    • element: string

    Returns Promise<void>

  • Parameters

    • selector: string
    • text: string
    • delay: number = 100

    Returns Promise<void>

  • Parameters

    • locator: Locator

    Returns Promise<void>

  • Parameters

    • locator: Locator

    Returns Promise<Locator>

Generated using TypeDoc