Right Click Menus (Java Application)

Ask general questions here.
aunal
Posts: 17
Joined: Mon Jan 16, 2012 10:25 am

Right Click Menus (Java Application)

Post by aunal » Mon Feb 18, 2013 8:58 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Right Click Menus (Java Application)

Post by Support Team » Tue Feb 19, 2013 4:58 pm

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

aunal
Posts: 17
Joined: Mon Jan 16, 2012 10:25 am

Re: Right Click Menus (Java Application)

Post by aunal » Wed Apr 17, 2013 8:27 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Right Click Menus (Java Application)

Post by Support Team » Thu Apr 18, 2013 4:28 pm

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)

aunal
Posts: 17
Joined: Mon Jan 16, 2012 10:25 am

Re: Right Click Menus (Java Application)

Post by aunal » Fri Apr 19, 2013 3:12 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Right Click Menus (Java Application)

Post by Support Team » Mon Apr 22, 2013 5:18 pm

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)