So in order to achive that, I replaced .Drag, Please see the code below:
function DragToObject(source, destination)
sDelay = 1000;
var point1 = source.WindowToScreen(source.Width/2, source.Height/2);
LLPlayer.MouseDown(MK_LBUTTON, point1.X, point1.Y, sDelay);
var point2 = destination.WindowToScreen(destination.Width/2, destination.Height/2);
LLPlayer.MouseMove(point2.X, point2.Y, sDelay);
LLPlayer.MouseUp(MK_LBUTTON, point2.X, point2.Y, sDelay);
This works for me. Thank you all for being so nice and kind
I would say 'Wow!' and thank you for sharing your finding
It is really good to know that LLPlayer and .ScrollIntoView can be used together and work as expected. Nice and useful trick.
To Support: Don't you think that this is worth to be mentioned in the 'TestComplete How To' ?
"To Support: Don't you think that this is worth to be mentioned in the 'TestComplete How To' ?"
Scrolling and drag'n'drop are two of the most common causes of problems and questions on here .....
I am using angular based application and for me i tried simple method and it worked
e.g. (In Python+ TestComplete)
devModel = AllDevicesPageObject.devModelHeader(page);