I have recorded a drag & drop step in my test that drags a row from a RadGrid to a specific element on the page. After dragging the row to the element, a popup window is supposed to open that I will close, then the information from the row is displayed attached to the element. When I run the recorded drag & drop step, the popup window never opens. It does appear the row is getting dragged to the correct location. I was able to get the popup window to open if I set the Pause property of this step to After, then run the step. The row gets dragged to the element, the test pauses, and the popup window opens like it should, but then test execution stops while I manually answer the Test Studio pause window before the test continues. Based on this behavior, it seems like my application wants the dragged row to hover over the element for a certain amount of time before it's released (with a LeftMouseUp action) and Test Studio is releasing it immediately after dragging the row to the center of the element.
I looked at the code for the drag & drop step to see if I could drag the row over to the element and hold it there for a moment before releasing it, but that does not appear to be an option. In the code for the drag and drop step, can I replace the DragTo statement with the code to control the mouse so I can insert a wait before the LeftMouseUp action?
I am using Test Studio Product Version 2014.4.1211.0
Here's the code for my drag & drop step:
[CodedStep(@"Desktop command: Drag & Drop ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow to x19Span")]
public void _06_Add_BTI_eq_to_Site_A_CodedStep()
// Desktop command: Drag & Drop ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow to x19Span
ActiveBrowser.ResizeContent(1280, 107, 1600, 792);
Pages.OrderManagementSystem.ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow.DragTo(ArtOfTest.Common.OffsetReference.TopLeftCorner, 268, 28, true, Pages.OrderManagementSystem.x19Span, ArtOfTest.Common.OffsetReference.AbsoluteCenter, 0, 0, true);