[Wtr-general] How to identify the nth instance of a div?

Jason forum-watir-users at openqa.org
Wed May 2 11:27:48 EDT 2007


> You can also identify elements using multiple attributes, for example :class and :index :<br><br>ie.div(:class =&gt; &#39;contentItem&#39;, :index =&gt; 3)&nbsp; # access the 3rd div with a class of &#39
> 

Perfect - that's exactly what I was after.  Must have missed that in my tutorials and readings.  Lovely.


More information about the Wtr-general mailing list