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