How to simulate mouse right-click during test

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

How to simulate mouse right-click during test

Postby keico » Mon Feb 14, 2011 7:18 am

Hi,
Is it possible to simulate a mouse right-click action in test code?
keico
 
Posts: 21
Joined: Wed Jan 05, 2011 7:37 am

Re: How to simulate mouse right-click during test

Postby keertip » Mon Feb 14, 2011 8:30 am

What are you looking to do in your test?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: How to simulate mouse right-click during test

Postby keico » Mon Feb 14, 2011 9:13 am

I have a swing app that embeds a customized component. When the mouse cursor is on this component, right-clicking the mouse will trigger an action that brings up a JMenu. I would like to simulate the mouse right-clicking so that I can bring up the JMenu as the test runs.
keico
 
Posts: 21
Joined: Wed Jan 05, 2011 7:37 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron