Has anyone written code to handle <UL>/<OL> and <LI> tags -- as a collection with iterators?
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? If not I presume I'll have to extend watir and essentially clone the Spans, Divs or Ps classes and methods?Any suggestions?
I recommend extending Watir.
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 "end" as a line of code.
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.
Bret
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 "end" as a line of code.
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.
Bret
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
