Contents

GXtest UI Commands - Drag and Drop

Official Content
This documentation is valid for:

This command is useful for dragging and dropping a source control inside a target control.

DragAndDrop1_png

DragAndDrop2_png

Parameters

  • SourceControl: control name of the control to be dragged.
  • SourceRow: row number if source control is inside a grid or table; if it is not, set it to -1.
  • TargetControl: control name where to drop the source control.
  • TargetRow: row number if target control is inside a grid or table; if it is not, set it to -1.

 

Example:

&driver.DragAndDrop("ControlX", "ControlY")

&driver.DragAndDrop("ControlX", 2, "ControlY", -1)

&driver.DragAndDrop("ControlX", -1, "ControlY", 1) 

&driver.DragAndDrop("ControlX", 2, "ControlY", 4)

Availability

This command is available since GeneXus 17 upgrade 2.