Drag_From
Description
Performs the action of dragging a PTF object. It is followed by the Drop_Over action where a previously selected object is dragged and released over a newly selected object on the same page.
PTF throws an error when a drag action is not immediately followed with a drop action or a drop action is not preceded with a drag action. You can select the Check Syntax option to display any errors or warnings. See Syntax Check.
The following step types support Drag_From and Drop_Over actions:
-
Div.
Keep in mind:
-
The Drag_From and Drop_Over actions are supported for PTF recorder and playback.
-
The actions are associated with Div step type when the HTML code includes div tag with attributes draggable=”true” and droppable=”true”.
-
-
Link.
Keep in mind:
-
The Drag_From and Drop_Over actions are supported for PTF recorder and playback.
-
When PTF records tests for Tree Manager, instances of step definitions with Link step type and these actions can be found.
-
-
Span.
Keep in mind:
-
The Drag_From and Drop_Over is only supported for PTF playback.
-
The actions are associated with Span step type when the HTML code includes the Span tag nested in the div tag with attributes draggable=”true” and droppable=”true”.
-
See Drop_Over.
Example
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Div |
Drag_From |
id=win0divPTNUI_LAND_REC_GROUPLET$1 |
||
|
Div |
Drop_Over |
id=win0divPTNUI_LAND_REC_GROUPLET$6 |
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Span |
Drag_From |
id=PTNUI_LAND_REC_GROUPLET_LBL$0 |
||
|
Span |
Drop_Over |
id=PTNUI_LAND_REC_GROUPLET_LBL$1 |
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Link |
Drag_From |
id=PTPG_SIMPL_WRK_PTPG_CHARTSERIES |
||
|
Link |
Drop_Over |
id=PTPG_SIMPL_WRK_PTPG_CHARTXAXIS |