Latest update - i copied the 'before_text' and 'after_text' code from
HEAD to my version of watir, but the functions return empty string
when i try it on a text field. Likewise when i use
object.getAdjacentText("beforeBegin")...


On 11/2/05, boonhoo <[EMAIL PROTECTED]> wrote:
> great! I will try it later... i was toying with
> ie.document.forms(i).elements(i) and it doesn't seem to support the
> before_text() method. I will try this method on text_field..
>
> My purpose is to find the preceding text to 'guess' what possible
> value to enter into the text field. Thanks eveyrone :)
>
> boonhoo
>
> On 11/2/05, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> > At 12:47 PM 11/1/2005, John Lloyd-Jones wrote:
> > >That's the right way if you know the preceding text. If I understood the
> > >original question correctly, the aim was to find the (possibly unknown)
> > >text preceding a known text input field.
> >
> > My mistake. In HEAD, this can be done as
> >
> >    ie.text_field(:name, "whatever").before_text
> >
> > Bret
> >
> > _____________________
> >   Bret Pettichord
> >   www.pettichord.com
> >
> > _______________________________________________
> > 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

Reply via email to