Re: [Wtr-general] cell access

2006-10-10 Thread Dave Munns
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

Re: [Wtr-general] cell access

2006-09-25 Thread Angrez Singh
Hi,Using latest version of watir you can access span 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

Re: [Wtr-general] cell access

2006-09-23 Thread Bill Agee
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

Re: [Wtr-general] cell access

2006-09-23 Thread Paul Carvalho
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

Re: [Wtr-general] cell access

2006-09-23 Thread Bill Agee
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 th tags in Luke's HTML snippet. By support I meant that there is no TableHeader class in Watir, but accessing table headers

[Wtr-general] cell access

2006-09-22 Thread Luke
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