Skip to main content

Mouse Drag

Targets a specified desktop element and drags it.

Category: Desktop Application Automation · Group: Desktop · Activity name: Drag

The Drag activity in the designer

Example

Drag("xPath", deltaX=0, deltaY=0)

Inputs

NameTypeRequiredDefaultDescription
Element Target MethodstringYesxPathMethod to identify the desktop element. One of: xPath, referenceText, referenceImage.
Delta XintegerThe number of pixels to drag in the horizontal direction.
Delta YintegerThe number of pixels to drag in the vertical direction.