Hi ,
I have this strage scenario.
In our application combo boxes, we have few listitems which have different path. For example most of list items I am able to get using this code
isLookupFound = Host.Local.TryFindSingle("/container[@caption='selectbox']/listitem[@accessiblename='" &lookupItem & "']", Adapter.DefaultSearchTimeout, item)
But few items in the same combo fields are under
isLookupFound = Host.Local.TryFindSingle("/container[@caption='selectbox']/list/listitem[@accessiblename='" &lookupItem & "']", Adapter.DefaultSearchTimeout, item)
For now I am checking if I can find items using the first path, if I can't find then I look for the second path.
I am not sure if there are any other better ways to do this.
Please advice.
How to get all lookups from the combo with different path
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to get all lookups from the combo with different path
Hi,
Please take a look to following documentation to use a relative RxPath.
http://www.ranorex.com/blog/ranorexpath ... cks#Modify
Regards,
Peter
Ranorex Team
Please take a look to following documentation to use a relative RxPath.
http://www.ranorex.com/blog/ranorexpath ... cks#Modify
Regards,
Peter
Ranorex Team