Are we all using the DOM method .getElementsByTagName to get for example,
a level 2 heading?
return document.getElementsByTagName('h2')
Should we refactor these methods to make a more abstract method
show_labels
show_spans
show_pres
etc?
Thanks
aidy
In Watir 1.5 there is support for adding elements fairly easily so that you
shouldn't have to call getElementsByTagName directly. We haven't added
headings yet, but most other common elements are supported and easily
extended, you could put the following in a file and include it in your
scripts: