Page 1 of 1

How to get all lookups from the combo with different path

Posted: Thu Apr 14, 2011 3:15 pm
by Saha
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.

Re: How to get all lookups from the combo with different path

Posted: Thu Apr 14, 2011 3:36 pm
by Support Team
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