I just tried that and I am getting the same error.

On Wed, Apr 7, 2010 at 10:19 PM, Rats <crapats...@yahoo.com.au> wrote:

> On Apr 8, 12:16 pm, sal <salem.m.ja...@gmail.com> wrote:
> > I am loading a form with an embedded table using Ajax. I am having
> > trouble "locating elements" that are part of the form. I tried re-
> > reading the dom and waiting using the following:
> >
> >     @b=Watir::Browser.attach(:title,'sample')
> >     @b.wait()
> >
> > but I am still not able to locate any of the elements. For example:
> >
> > @b.text_field(:name, 'order_ref[1]').set('OE123')
> >
> > and I get the error:
> >
> > Watir::Exception::UnknownObjectException: Unable to locate element,
> > using :name, "order_ref[1]"
> >
> > I can inspect that element with Firebug and the name is fine. I tried
> > also using id, but I get the same error. Any help with this is much
> > appreciated.
>
> Just a suggestion, rather than attach to an existing window try
> opening a browser and navigating directly to the page. Not sure if
> that will help ...
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Sal Jamil • ephicax
President
Desk (650-585-2198)sal.ja...@ephicax.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com

Reply via email to