I have tried, using this code:

require 'watir'

browser = Watir::IE.new
browser.goto('http://www.google.com')
browser2 = Watir::IE.attach(:title, /Google/)
browser2.text_field(:name, 'q').set('Watir')
browser2.button(:name, 'btnG').click_no_wait

The click_no_wait still cannot run. Is the code right?

On Dec 12, 9:58 am, "larryni...@gmail.com" <larryni...@gmail.com>
wrote:
> Pramod, could you show us an example of your code?
>
> On Dec 11, 11:01 pm, "pramod D" <petkar.pra...@gmail.com> wrote:
>
>
>
> > Hi Michael,
>
> > Initially i also faced same problem when i use Click_no_wait control was
> > going but never clicked it, To come around this initially i opened the IE
> > (IE7)with blank page and then, i will attach the browser at the start of the
> > script and continue to execute my script as usual and worked correctly. For
> > time being you can fallow this turn around method.
>
> > Thanks,
> > Pramod
> > On Fri, Dec 12, 2008 at 1:46 AM, Michael Hwee <michael_h...@yahoo.com>wrote:
>
> > > That is disappointing.
> > > I believe that is something like OS and/or configuration issues, rather
> > > than watir itself.
>
> > > Michael
>
> > > ----- Original Message ----
> > > From: "larryni...@gmail.com" <larryni...@gmail.com>
> > > To: Watir General <watir-general@googlegroups.com>
> > > Sent: Thursday, December 11, 2008 12:00:00 PM
> > > Subject: [wtr-general] Re: button.Click_No_Wait only highlights the 
> > > button,
> > > does not click
>
> > > Sorry, Michael, your code doesn't work either.  It opens the page,
> > > highlights the button yellow, and then just sits there.  No popup is
> > > ever launched because it doesn't actually click the button.  Watir
> > > doesn't report any errors, but it never completes, either.  If I
> > > change click_no_wait to click!, it does launch the popup, but the
> > > handle_nextpopup command never executes - it's been sitting here for
> > > 90-120 seconds with the popup open not doing anything.  So, again, to
> > > summarize: click_no_wait is incapable of firing any events, but click!
> > > makes the script hang.- 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