Hello Jam and Everyone else,

The "Watir::Waiter.wait_until" and the "until" methods work just fine.

I was using id: 'editbutton' in my wait function.

Should have used id:'editButton'

The old big "B"-vs- little "b" issue.



Thanks again,
Darryl




On Feb 19, 5:13 pm, "Darryl (gem dandy) Brown" <d-l-
br...@roadrunner.com> wrote:
> Hi Jam,
>
> The code goes into a loop and never comes out. Any other thoughts ?
>
> until($ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button
> (:id, 'editbutton').exist?)
>   $ie.wait(5)
>        puts "loop"
>   end
> $ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button(:id,
> 'editButton').click
>
> Shouldn't it exit the wait after 5 seconds?
>
> Thanks,
>
> Darryl
>
> On Feb 18, 7:03 am, jam <ruby.wa...@gmail.com> wrote:
>
> > Hi Darryl,
>
> > I dont know wait_until. But
>
> > try this
>
> > until(button.Exists?)
> >   ie.wait(5)
> > end
> > button.click
>
> > Let me know whether this meets ur requirement?
>
> > Thanks,
> > Jam
>
> > On Feb 18, 6:03 am, "Darryl (gem dandy) Brown" <d-l-
>
> > br...@roadrunner.com> wrote:
> > > Hello all,
>
> > > Help...I'm having trouble with "Watir::Waiter.wait_until". My goal is
> > > to wait
> > > until a button is present before clicking it.
>
> > > I'm trying replace the sleeps with wait_until.
>
> > > 1) This works:
> > >   sleep 5
> > >   $ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button(:id,
> > > 'editButton').click
>
> > > 2) This doesn't work:
> > >   Watir::Waiter.wait_until{$ie.frame(:index, 3).frame(:index, 3).frame
> > > (:index, 1).button(:id, 'editButton').exists?}
> > >   $ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button(:id,
> > > 'editButton').click
>
> > > Do anyone have any suggestions? Is there a trick to making it work
> > > with a nested button? The portion of the page that contains the button
> > > loads slow sometimes.
>
> > > Thanks,
> > > Darryl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to