The purpose of click_no_wait is to support the following logic flow.

1. click button
2. handle popup

This was particularly important with the showModalDialogs, but these, of 
course, only work with IE. Previously you had to do this.

1. start popup handler
2. click button

This inverted logic was confusing to some.

But what we really need is a browser/platform independent way of 
handling popup dialogs.

Bret

Angrez Singh wrote:
> Bret,
>
> Do we need to implement this in FireWatir? I looked through the code 
> in Watir basically it spawns a new process & click the button in that 
> process? I think the basic reason to do this is that if javascript pop 
> up comes we can handle that. Correct? & There is a way to do that in 
> FireWatir. This will un-neccessarily increase the complexity of 
> handling pop ups (which already is complex :) )
>
> - Angrez
>
> On Wed, Mar 25, 2009 at 8:41 PM, Vijay <[email protected] 
> <mailto:[email protected]>> wrote:
>
>
>     Bret,
>
>     Thanks for the information.  Have posted an issue at the link below:
>
>     http://code.google.com/p/firewatir/issues/list
>
>     Vijay
>
>     On Mar 24, 7:49 pm, Bret Pettichord <[email protected]
>     <mailto:[email protected]>> wrote:
>     > Right. click_no_wait is not implemented in FireWatir. I'm not
>     sure if
>     > this is already logged in Jira. If not, it should be added.
>     >
>     > Bret
>     >
>     >
>     >
>     >
>     >
>     > Vijay wrote:
>     > > Hello people,
>     >
>     > > In yhe following code,
>     >
>     > > require 'watir'
>     > > Watir::Browser.default = 'firefox'
>     > > $browser = Watir::Browser.new
>     > > $browser.goto('www.google.com <http://www.google.com>')
>     > > $browser.maximize
>     > > $browser.text_field(:name,'q').set('random')
>     > > $browser.button(:name,'btnG').click_no_wait
>     >
>     > > the command, '$browser.button(:name,'btnG').click_no_wait'
>     does not
>     > > click the 'Search' button.  However, the command, '$browser.button
>     > > (:name,'btnG').click', clicks the 'Search' button.  Am I doing
>     > > something wrong here or is there a known issue about the
>     > > 'click_no_wait' command in firewatir?
>     >
>     > > Thanks for your time,
>     > > Vijay.
>     >
>     > --
>     > Bret Pettichord
>     > CTO, WatirCraft LLC,www.watircraft.com <http://www.watircraft.com>
>     > Lead Developer, Watir,www.watir.com <http://www.watir.com>
>     > Blog,www.io.com/~wazmo/blog <http://www.io.com/%7Ewazmo/blog>
>     > Twitter,www.twitter.com/bpettichord
>     <http://www.twitter.com/bpettichord>
>     >
>     > Watir Training: Austin March 25-26, Portland/Beaverton April
>     16-17www.watircraft.com/training-
>     <http://16-17www.watircraft.com/training-> Hide quoted text -
>     >
>     > - Show quoted text -
>
>
>
> >


-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to