What version of Watir are you using?

If you're using the newest one then read my post about debugging
click_no_wait problems at here
http://www.itreallymatters.net/post/1366392123/debugging-and-improving-watirs-click-no-wait-method

Jarmo Pertman
-----
IT does really matter - http://www.itreallymatters.net

On Jan 6, 9:41 am, Dave McNulla <mcnu...@gmail.com> wrote:
> Do you have sample html code (from the web application under test)
> that people can try out? If you could please treat this like a bug
> report, you would be sure to put a way for everybody to reproduce the
> problem.
>
> You might also show the version of IE you are using.
>
> Thanks,
>
> Dave
>
> On Jan 5, 9:57 pm, Preethi <preethi.sivaku...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Is this problem with Wait time which is less. I've searched everywhere
> > in the group for similar post and didn't find any.
> > Please help.
>
> > On Jan 6, 10:39 am, Preethi <preethi.sivaku...@gmail.com> wrote:
>
> > > Hello Watir Experts!
>
> > > I'm experincing some problems following solutions given 
> > > inhttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>
> > > When i use Click => the code stops execution there
> > > So i used Click_no_wait so that code proceeds further.
> > > But the problem here is that , When i use Click_no_wait my browser
> > > doesn't show a popup at all and the startClicker method waits till
> > > wait time and produces exception
> > > I dont know where I'm wrong
> > > Please help me am struck.
>
> > > Below is code snippet
> > > ================
> > > buttonCreateSave.click_no_wait   #produces javascript alert box
> > > startClicker("OK",7,nil)
>
> > > my startClicker method is as follows
> > > ==========================
> > > def startClicker( button , waitTime= 9, user_input=nil )
> > >   hwnd = $ie.enabled_popup(waitTime)
> > >   if (hwnd)  # yes there is a popup
> > >     w = WinClicker.new
> > >     if ( user_input )
> > >       w.setTextValueForFileNameField( hwnd, "#{user_input}" )
> > >     end
> > >       w.clickWindowsButton_hwnd( hwnd, "#{button}" )
> > >       w=nil
> > >   end
> > > end

-- 
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