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.