DragAndDrop an element specified by a locator and drop it on an element specified by another locator.

Hierarchy

  • Action
    • DragAndDrop

Properties

Methods - Factory

Methods - Other

Methods - called internally

Properties

abilityAlias?: string
callStack?: CallStackInfo[]

Methods - Factory

  • Drag the specified source element to the specified target element and drop it.

    Parameters

    • sourceLocator: Locator

      the locator of the source element.

    • targetLocator: Locator

      the locator of the target element.

    • Optional options: DragAndDropActionOptions

      (optional) options for the drag and drop action.

    Returns DragAndDrop

    new DragAndDrop instance

    Example

    simple call with just locator

    DragAndDrop.execute(
    page.locator('sourceLocator'),
    page.locator('targetLocator')
    );

    with options

    DragAndDrop.execute(
    page.locator('sourceLocator'),
    page.locator('targetLocator'),
    { 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

  • drag the specified locator and drop it on the target.

    Parameters

    • actor: Actor

      Actor performing this action

    Returns Promise<void>

    Returns after dragging the locator to another target locator or target position

Generated using TypeDoc