myself and some others, I forget who, have discussed this.
I had a need to do something like what you also need, and we came up with
something like
table ie.element_before( :table , :text_field , :id , "my_text_field")
this would return the :table that is immediately before the :text_field wit :id
"my text field"
I never got as far as updating it to work with 1.5 though, so its not checked
in :-( And it may be entirely different to what this is, as I'm going off memory
I'll try and post it as it is tonight, but remind me if I dont do it in a day
or 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
> ...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 there a way to find out what the table index is that
> contains a span? To explain it another way, here is some fake code.
>
> table_index =
> $ie.frame('frame1').span(:text,'findme').get_parent_table_index()$ie.frame('frame1').table(:index,table_index)[1][3].text_field(:index,
> 1).set('i did it!')
> -------------------------------------------------------------------
> --
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=5270&messageID=14638#14638
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general