Drag and Drop action in windows based application
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Drag and Drop action in windows based application
Hello All,
Good Day!
I'm very new to Test Complete for Desktop Automation. I prepared a script using Recorder. And, I need to record Drag and Drop as well. But, recorder isn't recording that action.
Hence, I couldn't able to perform this action. Could someone please help me out to automate this? Appreciate your help here.
- Labels:
-
Desktop Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's Drag
which will accomplish this for you
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @SAtishqatrainer
Drag drop action is not recorded for me as well, but we can modify the code as below,
Aliases.AppService.HwndSource_MainWindow.Drag(50, 90, 100, 0)
Also,
The Drag action works in the following manner:
Moves the mouse cursor to the point specified by the ClientX and ClientY parameters.
“Presses” the left mouse button.
“Holds” the button down and moves the cursor to the distance specified by the toX and toY parameters.
“Releases” the left mouse button.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @naveens33_
Did you see that you and I posted the same answer? lol
It does help to scan the other posts to see what has already been suggested before you reply.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Marsha_R ,
Yes I have seen your post.
But did you see properly what I have posted ? lol
I have not posted the answer by just reading the documentation. And I have not reply to all the question just posting what's already there in the documentation. Rather I also faced the same issue and tried myself in my project and posted my experience. Not just the posting what's already there in the documentation. Because, If I just google it like "Drag and Drop action in windows based application" I directly redirect to the following link
https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/onscreen/drag-action-...
then why should anyone come to community site.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@SAtishqatrainer Did you get your solution?
@naveens33_ Glad to see that the TestComplete documentation is helping you too!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to do this. But, it didn't workout. Do you have a minute to connect quiclky and show you the behavior?
EMail: satish.qatrainer@gmail.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@SAtishqatrainer Sorry, I'm not able to do that but you can contact Support directly at this link
