Press CTRL and Click in the same time

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

Press CTRL and Click in the same time

Postby anaderol » Mon Nov 15, 2010 6:29 am

Hi.
I have to write a test using WindowTester and I need to press CTRL and to click on an element in the same time. Is there a way to do that?
Thank you.

Loredana
anaderol
 
Posts: 8
Joined: Mon Nov 15, 2010 6:22 am

Re: Press CTRL and Click in the same time

Postby keertip » Mon Nov 15, 2010 8:59 am

Yes, that can e done. You would do a

Code: Select all
ui.click(clickCount, locator, modifierMask);


For eg.
Code: Select all
ui.click(1, new TableItemLocator("item"), WT.CTRL);
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