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.


On 9/22/06, Luke <[EMAIL PROTECTED]> wrote:
> Sorry for asking but I can't deal with it, I've got a table on page and I
> want to get to the cell "Action" can someone show me how to do it,
> I can't firgure out and fail all the time
>
>
table id="form1:ReportUnit:tblDetails" style="font-size: 11px;width: 640px"
>
class="Tbl" border="0"
cellpadding="0" cellspacing="0">
> <caption
 id="form1:ReportUnit:tblDetails:_titleBar"
> class="TblTtlTxt">Detail
</caption>
> <tr
> id="form1:ReportUnit:tblDetails:tableRowGroupS:_columnHeaderBar:0"
>
> <th
> id="form1:ReportUnit:tblDetails:tableRowGroupS:colLinkS:_columnHeader"
>
class="TblColHdr" align="center" scope=
"col"><span
> class="TblHdrTxt">Action</span></
th>
> ...
>
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to