Good idea. As i understand it handles only IE popups, right?

It would be even neater if it worked without using #click_no_wait -
e.g. if it would run the code in the block in a separate thread/
process/whatever so you could do something like this too:
ATT::AlertPopup.find_when { ie.goto("xxx") }.click

Currently it would not work since #goto would block if there's alert
in html <head> element for example.

As i understand then using #goto in a separate thread might not be
sufficient since something seems to be blocking... I'm not sure
though.

Also, what's the namespace ATT useful? Why not have something like
"Popup" instead. Seems more natural to me:
Popup::Alert...

Thanks for finding my RAutomation gem useful.

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

On Oct 22, 7:45 am, 李亚飞 <[email protected]> wrote:
> using watir, I write lots of code to test our production, but complicat  
> browsers required are anony for me.
>
> So I release popup project:
>
> popup project is designed for doing all type of popups, like alert popup,  
> file popup and others.
> and is complicat with different windows platfrom, XP,2003,vista,win7 (en  
> and chinese version) .
> It also has a very simple interface.
>
> coding like this:
>
> ie = Watir::IE.new
> ie.goto("xxx")
> ATT::AlertPopup.find_when { ie.button(:id,"xx").click_no_wait }.click
>
> more information please see:
>
> https://github.com/windy/popup
> wiki:https://github.com/windy/popup/wiki/Popup-project-Home
>
> It depends on rautomation , thx to jarmo sharing the best code.
>
> Hope it can be useful for you.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to