On 7/11/06, <b class="gmail_sendername">Attebery, Bill</b> &lt;<a href="mailto:Bill.Attebery@twtelecom.com">Bill.Attebery@twtelecom.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>






<div>


<p><font face="Arial" size="2">Has anyone written code to handle &lt;UL&gt;/&lt;OL&gt; and &lt;LI&gt; tags -- as a collection with iterators?</font>

<br><font face="Arial" size="2">I have the following HTML -- and I'd like to be able to handle the LIs as a collection and iterate through them (and access the link within) based on the text -- has anyone done this?&nbsp; If not I presume I'll have to extend watir and essentially clone the&nbsp; Spans, Divs or Ps classes and methods?
</font></p>

<p><font face="Arial" size="2">Any suggestions?</font><br></p></div></div></blockquote><div>I recommend extending Watir.<br><br>I've been steadily reducing the amount of code it takes  to support a new tag in Watir. This shouldn't be very hard. It should take about 13 lines of code to add support for each each of these in 
1.5 -- if you include &quot;end&quot; as a line of code.<br><br>I've recently been reading up about meta programming and suspect that i could rework Watir so that adding support for tags like these would only take three or four lines of code.
<br><br>Bret<br></div><br></div>