Page 1 of 1

Right Click Menus (Java Application)

Posted: Mon Feb 18, 2013 8:58 am
by aunal
Hello,

In our tests, we check whether a certain item exists in right click menu or not.

So far, we failed to get a hold on the right click menu with ranorex. We are trying to perform the check by comparing screenshots but as you can imagine comparing screenshots is both time consuming and is not as accurate as checking the items in a list.

Is there a way/trick to make right click menus recognizable by Ranorex?

Thanks in advance,
Arda Unal

Re: Right Click Menus (Java Application)

Posted: Tue Feb 19, 2013 4:58 pm
by Support Team
Hello,

You should be able to track all the elements of the menu with the "Instant Tracking" functionality of Ranorex Spy.
Have you already tried it this way?

Regards,
Markus

Re: Right Click Menus (Java Application)

Posted: Wed Apr 17, 2013 8:27 am
by aunal
Yes, yes i did but it seems for Java applications contextmenu handling needs some attention while writing test cases. Since, the menu is not visible until you right click somewhere, tracking them is not possible via spy and related XPaths needs to be configured for each right click menu item.

Re: Right Click Menus (Java Application)

Posted: Thu Apr 18, 2013 4:28 pm
by Support Team
Hello,

In general, it should work to track elements inside a context menu with Instant Tracking (<CTRL+WIN>).
You would need to make a right-click at first to show up your context menu.
Then, you should be able to click on it.

Which Ranorex version do you use?
Do you see any other issues if you track elements with Spy?

Thank you.

Regards,
Markus (T)

Re: Right Click Menus (Java Application)

Posted: Fri Apr 19, 2013 3:12 pm
by aunal
Version is 4.0.0

Other than constantly editing XPaths, we haven't observed anything. I will give CTRL+WIN a try and see how it goes.

Thank you.

Best,
Arda

Re: Right Click Menus (Java Application)

Posted: Mon Apr 22, 2013 5:18 pm
by Support Team
Hello,

Thank you for your info.

In general, you only need to edit a RanoreXPath if something has changed in your application.
If there are a lot of changes in your application, I recommend you to make your RanoreXPath flexible.
Please take a look at our User Guide to get information on RanoreXPath.

Could you please try to update to our current version (4.0.3)?
This would fix several issues in Ranorex (see Release Notes).

Thank you.

Regards,
Markus (T)