anitha123
14 years agoContributor
While using Drag operation, how to use exact co-ordinates inside drag operation
Hi,
I am peforming a drag operation for one of the screen where i need to click a button. Button is at the end of the screen which Testcomplete cannot click so I am using Drag operation to bring the Screen up. Please let me know how to provide exact co-ordinates in Drag operation. Sometimes when i give this co-ordinates, Testcomplete throws an error as "there was an attempt to perform an action which is beyond the screen.
sensorUserControl = x.HwndSource_Screen_1_11_Name.Screen_1_11_Name.FrictionScrollViewer.Grid.Screen_1_23_Name;
sensorUserControl.Drag(934, 9, -113, -11);
I am peforming a drag operation for one of the screen where i need to click a button. Button is at the end of the screen which Testcomplete cannot click so I am using Drag operation to bring the Screen up. Please let me know how to provide exact co-ordinates in Drag operation. Sometimes when i give this co-ordinates, Testcomplete throws an error as "there was an attempt to perform an action which is beyond the screen.
sensorUserControl = x.HwndSource_Screen_1_11_Name.Screen_1_11_Name.FrictionScrollViewer.Grid.Screen_1_23_Name;
sensorUserControl.Drag(934, 9, -113, -11);
Please let me know the answer as soon as possible.
Thanks and regards,
Anitha