Menu with submenus
Menu with submenus
I am having trouble clicking the items on a submenu of another submenu. For example I am trying to write code to click menu->submenu 1 item -> submenu 2 item. Everything I have written so far will click the first submenu 1 item but not the next submenu 2 item. Any suggestions on how to properly do this ?
Re: Menu with submenus
I've structured some of our nested sub-menus as folders under the top-level menu repository item. So I click on say 'Date' at the top-level, wait a bit, then click on one of the repository sub-menu items that I've placed in a folder.
In other cases our AUT creates a new contextmenu with a different name/RxPath. So I invoke the top-level menu, wait for that repository item to exist, click on the nested sub-menu item, then I wait for the sub-menu repository item to exist before clicking on the required sub-menu item.
In other cases our AUT creates a new contextmenu with a different name/RxPath. So I invoke the top-level menu, wait for that repository item to exist, click on the nested sub-menu item, then I wait for the sub-menu repository item to exist before clicking on the required sub-menu item.
Re: Menu with submenus
Hi,
Have you tried to record the actions? Simply record them and then, if really necessary, convert them to user code. But honestly, there is definitely no need to write everything in code. Using recordings, with well structured repository, makes the automation development faster and much less error prone. Recorded actions are automatically validated and converted to code, so there is a very little chance of user errors.
Have you tried to record the actions? Simply record them and then, if really necessary, convert them to user code. But honestly, there is definitely no need to write everything in code. Using recordings, with well structured repository, makes the automation development faster and much less error prone. Recorded actions are automatically validated and converted to code, so there is a very little chance of user errors.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration