ui.contextClick

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

ui.contextClick

Postby vizardofoz » Tue Jun 22, 2010 2:23 am

I have a List in a View and a context menu for this View. ListItemLocator can find my List, the statement

ui.click(new ListItemLocator("DTObjA"));

works correctly, but the contextClick does not work, neither without parent locator

ui.contextClick(new ListItemLocator("DTObjA"), "ContMenuStubEntryA");

nor with

ui.contextClick(new ListItemLocator("DTObjA", new ViewLocator("com.subsystem.ViewStub")),"ContMenuStubEntryA");

The error is an exception.

Of course context menu manually work well.

ContextClick works well with something out the View, for instance:

ui.contextClick(new CTabItemLocator("ViewStub"), "&Close");

The problem seems to be, it can not locate something inside the View.

Thank
vizardofoz
 
Posts: 8
Joined: Thu Apr 08, 2010 7:04 am

Re: ui.contextClick

Postby Phil Quitslund » Tue Jun 22, 2010 12:45 pm

Have you tried this with the latest beta release? A recent fix hopefully addresses your issue.
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: ui.contextClick

Postby vizardofoz » Tue Jun 22, 2010 11:08 pm

I have the latest Build 5.0.1.
Do you mean that one?
Any other suggestion?
Thanks
vizardofoz
 
Posts: 8
Joined: Thu Apr 08, 2010 7:04 am

Re: ui.contextClick

Postby Phil Quitslund » Wed Jun 23, 2010 9:27 am

We're revisiting this and hope to have an improved fix in our 5.1 GA, due to be released in the next few days. Please check back in a few days and try the latest and let us know how it goes.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest