How to Loop through ListItems using index?

Class library usage, coding and language questions.
mehulmehta
Posts: 1
Joined: Thu Jul 08, 2010 6:32 pm

How to Loop through ListItems using index?

Post by mehulmehta » Thu Jul 08, 2010 6: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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to Loop through ListItems using index?

Post by Support Team » Fri Jul 09, 2010 8:49 am

Hi,

Please read following thread http://www.ranorex.com/forum/looping-th ... 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