how do I drag and drop an element in TestComplete?

0 votes
I have a scenario where I am supposed to drag and drop an element in TestComplete. How do I do that?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

by (1.1k points)
0 votes
You can use the Drag function in TestComplete to perform Drag and Drop action.


Dim testObject
Set testObject = Aliases.MyObject
Call testObject.Drag(19, 26, -3, -59)

You can get values to pass to the Drag function by starting the record option and perform drag and drop while recording.

Hope that helps.