Check a checkbox specified with locator.

Hierarchy

  • Action
    • Check

Properties

Methods - Factory

Methods - Other

Methods - called internally

Properties

abilityAlias?: string
callStack?: CallStackInfo[]

Methods - Factory

  • specify which element should be clicked on

    Parameters

    • locator: Locator

      the string representing the locator.

    • Optional options: CheckActionOptions

      (optional): options for the check action.

    Returns Check

    new Check instance

    Example

    simple call with just locator

    Check.element(
    page.locator('myLocator')
    );

    with options

    Check.element(
    page.locator('myLocator'),
    { timeout: 3000 }
    );

Methods - Other

  • Parameters

    • entry: CallStackInfo

    Returns void

  • Parameters

    • calledWith: CallStackCalledWith

    Returns void

  • Set the alias which is used for an underlying ability

    Parameters

    • alias: undefined | string

      with which an ability was initialized

    Returns this

    current action

Methods - called internally

  • find the specified locator and click on it.

    Parameters

    • actor: Actor

      Actor performing this action

    Returns Promise<void>

    Returns after checking the element

Generated using TypeDoc