Hover over an element specified by a locator.

Hierarchy

  • Action
    • Hover

Properties

abilityAlias?: string
callStack?: CallStackInfo[]

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

  • Specify which locator should be hovered over

    Parameters

    • locator: Locator

      The locator that should be hovered over.

    • Optional options: HoverActionOptions

      (optional) options for the hover action.

    Returns Hover

    new Hover instance

    Example

    simple call with just locator

    Hover.over(
    page.locator('myLocator')
    );
    with options
    ```typescript
    Hover.over(
    page.locator('myLocator'),
    { timeout: 3000 }
    );

    @category Factory

Methods - called internally

  • find the specified locator and hover over it.

    Parameters

    • actor: Actor

      Actor performing this action

    Returns Promise<void>

    Returns when hovered over the element

Generated using TypeDoc