looping through div

Ask general questions here.
sdimbre
Posts: 21
Joined: Wed Sep 07, 2011 12:38 pm

looping through div

Post by sdimbre » Mon Apr 16, 2012 5:10 pm

Hi

I have structure something like following.

<div id='parent'______________________>
<div id='child-1'>_____________</div>
<div id='child-2'>_____________</div>
<div id='child-3'>_____________</div>
<div id='child-4'>_____________</div>
</div>

How can i loop through each of the child div tag? How to find child count? Is there any example on this.

Thanks,
Dimbre

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: looping through div

Post by Ciege » Mon Apr 16, 2012 5:25 pm

Get an iList of all DIV tags and loop through them to do your evaluations. See here for an example: http://www.ranorex.com/forum/post12515. ... div#p12515
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...