Span and theIndex are good for locating items. In order to construct a loop and
access all items, how does one find out the number of items in a span element?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=
Hi,Using latest version of watir you can access element using:$ie.span(:class, "TblHdrTxt")for accessing TH you can use xpath query for getting the element.Regards,
AngrezOn 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 g
Ah, yes. It's been so long since I looked at any table code I forgot
that the easiest way is to get cells is to use table.[index][index].
That does indeed work fine with the tags in Luke's HTML snippet.
By "support" I meant that there is no "TableHeader" class in Watir,
but accessing table header
Umm.. I have no idea what you're talking about, Bill. is just a 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
I don't think Watir (1.4.1, at least) has built-in support for the tag.
But if you know the index of that 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 (
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"