How to get all lookups from the combo with different path : Object Identification and Technologies

How to get all lookups from the combo with different path

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

How to get all lookups from the combo with different path

Postby Saha » Thu Apr 14, 2011 4:15 pm

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.
Saha
 
Posts: 39
Joined: Tue Mar 01, 2011 7:20 pm

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

Postby Support Team » Thu Apr 14, 2011 4:36 pm

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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests