Newby question:
I want to find a menuitem on my list. It is always on place 2 (Childindex1).
Now the finding is based on @accessiblename, but I am changing the language all the time, so I would allways like to click the second item no matter what the text is (Settings...Einstellungen...)
Properties of ChildIndex is greyed; it cannot be used?
Or how shoud I modify the path: contextmenu/menuitem[@childindex='1'] -> this one does not work
Attribute ChildIndex
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Attribute ChildIndex
Hi!
You can use the RxPath like an Array. But the array of Ranorex starts at "1" instead of the arrayindex in C#.
For example:
Peter
Ranorex Support Team
You can use the RxPath like an Array. But the array of Ranorex starts at "1" instead of the arrayindex in C#.
For example:
//Ranorex identify the third menuitem of the contextmenu RxPath rxPath = "contextmenu/menuitem[3]"Regards,
Peter
Ranorex Support Team
Re: Attribute ChildIndex
Thanks a lot! It works 
