How to Loop through ListItems using index? : Automation API

How to Loop through ListItems using index?

Class library usage, coding and language questions.

How to Loop through ListItems using index?

Postby mehulmehta » Thu Jul 08, 2010 7:40 pm

Hello,

I am a ranorex newbie, currently evaluating the product.

Given a list of items, what is the best way of looping thru each and clicking? I have the list itself in the repository but the listitems are all captured as @text='<sometext>'. Since the number of listitems are variable, I would like to use a for loop but i was not able to find such an example in the samples

Any insights from experts?
mehulmehta
 
Posts: 1
Joined: Thu Jul 08, 2010 7:32 pm

Re: How to Loop through ListItems using index?

Postby Support Team » Fri Jul 09, 2010 9:49 am

Hi,

Please read following thread looping-through-specific-column-t1347.html
I think this is exactly what you are searching for. If you adapt this code a little bit, it will work with your List using the index.

Regards,
Peter
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests