Automation Guide
Action-based testing language
TestArchitect Automation Classes
Automation classes
AbtElement
The requested page is not available for selected version.
DragMouse
Syntax
long DragMouse(int x1, int y1, int x2, int y2)
Description
Perform a drag-and-drop operation from one specified location within the element to another.
Parameters
x1
Horizontal position of starting point of drag operation (units: pixels, relative to left edge ofelement).
y1
Vertical position of starting point of drag operation (units: pixels, relative to top edge ofelement).
x2
Horizontal position of destination of drag operation (units: pixels, relative to left edge ofelement).
y2
Vertical position of destination of drag operation (units: pixels, relative to top edge ofelement).
Return Value
Return 0 ifthe drag-and-drop is successful; otherwise, -1.