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
Right Click Menus (Java Application)
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Right Click Menus (Java Application)
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
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)
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.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Right Click Menus (Java Application)
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)
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)
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Right Click Menus (Java Application)
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)
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)