Hi Bill,

Which version of Ruby are you using.?
If you are using build 27, click_no_wait does not work. Same thing
happened to me too. I rolled it back to 26 and every thing works fine.

Try that..

Thanks
Satish

On May 21, 12:15 pm, suri <sureshreddy....@gmail.com> wrote:
> Hi all,
> In my application, when I enter some invalid data in  text_field an
> alert will warn. I have to close that popup. I tried to write
> set_no_wait for text field but it is not working. I tried the same
> code for check box,radio button it is working fine. Please help me to
> write the set_no_wait for text_field and list box.
>
> module Watir
> class Element
>  def set_no_wait
>             assert_enabled
>             highlight(:set)
>             object = "#{self.class}.new(self, :unique_number,
> #{self.unique_number})"
>             @page_container.eval_in_spawned_process(object + ".set")
>             highlight(:clear)
>         end
>     end
> end
>
> Regards
> Siva Phaneendra Krapa
>
> On Apr 20, 2:02 pm, Wesley Chen <cjq....@gmail.com> wrote:
>
>
>
> > Thanks, I make few changes and get it down. :)
> > Now, we can use click_no_wait, select_no_wait, set_no_wait.
>
> > module Watir
> >     class Element
>
> >         #select_no_wait - selects a drop-down element spawning a new
> > process.
> >         #this is needed to close potential pop-ups that select drop-down can
> > trigger.
> >         def set_no_wait
> >             assert_enabled
> >             highlight(:set)
> >             object = "#{self.class}.new(self, :unique_number,
> > #{self.unique_number})"
> >             @page_container.eval_in_spawned_process(object + ".set")
> >             highlight(:clear)
> >         end
> >     end
> > end- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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