Options
All
  • Public
  • Public/Protected
  • All
Menu

The options for the drag action

Hierarchy

Index

Properties

allowChild

allowChild: boolean

When waiting for the target to become actionable, one of the checks that element needs to pass is "reachable". It defines that the action point should be directly reachable by the user (be the top-most and not covered with other elements). This setting defines whether to allow that point to be covered with child element of the target.

Default is true.

altKey

altKey: boolean

Set to true to simulate Alt keypress during the action

ctrlKey

ctrlKey: boolean

Set to true to simulate Ctrl keypress during the action

dragOnly

dragOnly: boolean

Whether to skip the mouse up action in the drag and keep the button pressed, might be useful if you want to perform a drag action consisting from several segments. In this case, don't forget to manually perform mouseUp action later.

from

Alias for source

fromOffset

fromOffset: ActionTargetOffset

Alias for sourceOffset

metaKey

metaKey: boolean

Set to true to simulate Meta keypress during the action.

mouseMovePrecision

mouseMovePrecision: PointerMovePrecision

Mouse move precision to use, when moving the mouse cursor from its current location to the target point.

offset

Offset for the action. If not provided, the action happens in the center of the visible part of the target element.

shiftKey

shiftKey: boolean

Set to true to simulate Shift keypress during the action

source

source: ActionTarget

The source of the drag action

sourceOffset

sourceOffset: ActionTargetOffset

The offset on the source element

target

target: ActionTarget

The target element

targetOffset

targetOffset: ActionTargetOffset

The offset on the target element

timeout

timeout: number

The maximum time to wait for target to become actionable. By default its taken from the TestDescriptor.defaultTimeout

to

Alias for target

toOffset

Alias for targetOffset

Generated using TypeDoc