would return
id, name, class...]
Lonny Eachus
==
Subject:
Re: [Wtr-general] Find parent table index from a specific element within
From:
Bret Pettichord <[EMAIL PROTECTED]>
Date
John Lolis wrote:
> Lets say we have the following
>
> Table
> .TR
> ..TD
> ..TD
> ...SPAN text=findme
> ..TD
> ...Text Input Field
>
> The only element in this entire section that I can identify uniquely is the
> span. The span happens to be located within a table. That table also contains
> the
r 2 ;-)
Paul
- Original Message -
From: John Lolis <[EMAIL PROTECTED]>
Date: Wednesday, November 15, 2006 7:45 am
Subject: [Wtr-general] Find parent table index from a specific element within
> Lets say we have the following
>
> Table
> .TR
> ..TD
> ..TD
> ...SP
So if I understand correctly, you have a table that looks something like the
following:
[code]
...
findme
...
[/code]
And you want to located the text field and enter some value into it? Well you
could do the following: Assuming that this text field is the first and o
If there is one I have never found it. What I have had to do was do a
view source on the page. I then do f, enter 'mailto:[EMAIL PROTECTED] On Behalf Of John Lolis
Sent: Wednesday, November 15, 2006 6:46 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Find parent table index f
You can use an approach similar to the Element#visible idea in the
user contributions portion of the wiki site if you really need to.
http://wiki.openqa.org/pages/viewpage.action?pageId=1119.
The ole object is there and you can query it to get the parent if need
be. Otherwise, using Watir 1.5.1.x
That is actually a really nice simple solution, I have no idea why I didn't
think of it. I decided to go with a simple parser. It looks for a certain
table, finds a sub stable by index, finds the length then attempts to locate
input fields within it.
Thank you though, you got my brain thinking
Lets say we have the following
Table
.TR
..TD
..TD
...SPAN text=findme
..TD
...Text Input Field
The only element in this entire section that I can identify uniquely is the
span. The span happens to be located within a table. That table also contains
the text input field (my real goal). So is th