Umm.. I have no idea what you're talking about, Bill.  <th> is just a <td> with some fancy formatting.  I see no reason why a command like the following wouldn't work with Watir 1.4.1:
irb> ie.table(:index, 1)[1][3].flash

As with anything you do, there are usually a few ways to get to a particular object on a page.  You could just try to use the table(..)[row#][col#].whatever approach, or you could try to just access the span tag directly (as you suggested) and completely ignore the table.

Luke, in order for us to know what kind of advice to offer, it might help for you to also tell us what you have tried.  Including the section of html was good, but not enough.  Is the table in a frame?  Is the "Action" just a text label, or also a link?  Trying to "get to" something is not always straightforward by zooming in on the target.  Sometimes you have to step back and take in the big picture too.

Paul C.

On 22/09/06, Bill Agee <[EMAIL PROTECTED]> wrote:
I don't think Watir (1.4.1, at least) has built-in support for the <th> tag.

But if you know the index of that <span> in the document, you can get
to it using $ie.span(:index, theIndex)

Otherwise, if you really need to interact with the TH itself, you may
need to use Watir 1.5.x and its new XPath support (unless 1.5 already
has a class for TH).  The list archives have examples of using XPath
to access unsupported elements.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to