I feel obligated to point out one thing here:
Per the current (and the earliest of) HTML standards, values for id
attributes are supposed to be UNIQUE within a document(page).
id=name
Define a reference name for the tag that is UNIQUE in the
document. (emphasis mine)
There are parts of Watir
I popped the OP's code into a simple html page and Željko's approach
worked great. If the content in the third element might change (and
not literally say something as friendly as Three), here's a more
robust approach:
MyCells = Array.new
browser.cells.each do |cell| # If looking for a
I popped the OP's code into a simple html page and Željko's approach
worked great. If the content in the third element might change (and
not literally say something as friendly as Three), here's a more
robust approach:
MyCells = Array.new
browser.cells.each do |cell| # If looking for a
Thanks to you both. Željko's code worked fine but I'll keep in mind
your approach Adam.
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To