power_settings_new

how do I drag and drop an element in TestComplete?

by
asked
0 votes
34 views
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

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

E.g.

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.
add
...