Drag and Drop from a View to an Editor

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Drag and Drop from a View to an Editor

Postby mbykovksyy » Mon Oct 04, 2010 7:32 am

Hi all,

I've been trying to drag a TreeItem from a View into an Editor but it does not work. Here's what I do,

Code: Select all
// Click on the destination inside an Editor.
ui.click(new NamedFigureLocator("block_1"));

// Click on the target. This is inside a View.
ui.click(new TreeItemLocator("Project_1/POU_1", new ViewLocator("platform.cnf.view")));

// Drag to the destination point in the Editor.
ui.dragTo(new NamedFigureLocator("block_1"));


But what I see is a click on the block where I want TreeItem to be dropped, then click on the TreeItem I want to drag and then a mouse move to a location where I want TreeItem to be dropped i.e. where the first click occured.

Drag and dropping within the same View works well but when drag and dropping between Views I doesn't seem to work. Is this feature supported?
mbykovksyy
 
Posts: 8
Joined: Mon Sep 20, 2010 8:55 am

Re: Drag and Drop from a View to an Editor

Postby keertip » Mon Oct 04, 2010 11:25 am

Is this a GEF Editor?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Drag and Drop from a View to an Editor

Postby mbykovksyy » Mon Oct 04, 2010 11:48 am

Yes.
mbykovksyy
 
Posts: 8
Joined: Mon Sep 20, 2010 8:55 am

Re: Drag and Drop from a View to an Editor

Postby keertip » Thu Oct 07, 2010 10:41 am

Does the Drag and Drop work when you do it manually?

Do you have a sample application that we could use to test this at our end?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron