If it's in a frame you need to prefix the element selector with that frame:

ie.frame(:index, 1).button(:name => 'SDP_0_0')

Cheers,
Tim @90kts


On Fri, Feb 18, 2011 at 10:04 PM, Ashu <ashay.n...@gmail.com> wrote:

> yes
> there is 1 frame
> irb(main):014:0* ie.show_frames
> There are 1 frames
> frame: name:
>      index: 1
> => 0..0
> irb(main):015:0>
> unlike any other page wherin I can see the name of the frame
> Here the name is not displayed
>
>
> On Feb 18, 2:47 pm, Chuck van der Linden <sqa...@gmail.com> wrote:
> > are there Frames on the page perhaps?
> >
> > On Feb 17, 11:41 pm, Ashu <ashay.n...@gmail.com> wrote:
> >
> > > On trying the above line of code
> > > irb displays
> > > irb(main):045:0> ie.image(:alt, 'Open SDP file').wait_until_present
> > > Watir::Exception::UnknownObjectException: Unable to locate element,
> > > using :alt,"Open SDP file"
> > >         from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
> > > firewatir/element.rb:907:in `assert_exists'
> > >         from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
> > > firewatir/element.rb:1266:in `method_missing'
> > >         from (irb):45
> > >         from :0
> > > :-(
> > > On Feb 17, 2:00 pm, Alastair Montgomery <doodl...@gmail.com> wrote:
> >
> > > > Is it possible that you are trying to access the element before it
> has had
> > > > time to render?
> > > > We use jQuery and its elements sometime take a while to render fully.
> >
> > > > Try putting a line of *ie.image(:alt, 'Open SDP
> file').wait_until_present* before
> > > > you attempt to click on it.- Hide quoted text -
> >
> > > - Show quoted text -
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to