Handling popup windows

2 views
Skip to first unread message

Jeff Xiong

unread,
Mar 14, 2008, 11:08:55 PM3/14/08
to fluo...@googlegroups.com
Sorry...

what happens if the popup window being handled if not Alert but a custom window?

should be

what happens if the popup window being handled IS not Alert but a
custom window?

2008/3/15 Jeff Xiong <gigi...@gmail.com>:
> I've seen the code you submitted. Great job!
>
> A little suggestion on working style: as a part of completing a
> feature, we'd better enable and commit corresponding test case(s) as
> well, so that automated build script can make sure everything works
> well anywhere.
>
> By the way, what happens if the popup window being handled if not
> Alert but a custom window? Or shall we rename this action to
> "CloseAlert"?
>
> 2008/3/14 Jeff Xiong <gigi...@gmail.com>:
>
>
> > Then make the test pass, please !
> >
> > 2008/3/14 咖啡屋的鼠标 <tj1...@gmail.com>:
> >
> >
> > > Well, I found the way to get the Instance of Alert.
> > > if we code :Alert.show("Hello, World!");
> > > we can use Application.application.root.getChildAt() to visit it. It is
> > > allways the last element.
> > >
> > > 在08-3-14,咖啡屋的鼠标 <tj1...@gmail.com> 写道:
> > >
> > > > I failed too.I think SystemManager could help us.But I can't get the
> > > instance of Alert form popUpChildren property.
> > > > I am still thinking about it
> > > >
> > > >
> > > > 在08-3-13,Jeff Xiong <gigi...@gmail.com> 写道:
> > > >
> > > > > I tried and failed to handle Alert popups. I commented out associated
> > > > > test case from "default.fls". It would be great if you can tackle it.
> > > > >
> > > > > 2008/3/12 咖啡屋的鼠标 <tj1...@gmail.com>:
> > > > >
> > > > > > 刚刚提交了Alert的测试素材代码,简单Alert,两个按钮的Alert,三个按钮的Alert。
> > > > > >
> > > Flex中是有一个PopupManager管理着所有这样的弹出窗口,我相信直接简单remove掉问题不大,就是多个按钮的Alert的选择得想想。
> > > > > >
> > > > > >
> > > > > >
> > > > > > 在08-3-12,咖啡屋的鼠标 <tj1...@gmail.com> 写道:
> > > > > > > 另外,抱歉。我不太清楚你说的HTML runner是什么。。。。。-_-b
> > > > > > > 不会是说AIR的HTML控件吧。这好像跨出Flash的领域了。
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 在08-3-12,咖啡屋的鼠标 <tj1...@gmail.com> 写道:
> > > > > > >
> > > > > > > > 那天提交了两个mxml,权当测试素材:
> > > > > > > > /src/aut_customcomponent.mxml
> > > > > > > >
> > > > > > > > /src/CustomComboBox.mxml
> > > > > > > > 可以跑一下看看,fluorida现在应该无法访问到自定义组件内的元素。
> > > > > > > > 如果扩展的话,可能会出现click|customComponent.realComboBox
> > > > > > 这样的脚本,或者通过别的方式组织语法,我正想咱们怎么讨论呢,就看到这邮件了,呵呵。
> > > > > > > >
> > > > > > > > 除此之外,还想做Alert和别的Popup的组件着,但最近被公司CMMI恶心坏了,一直没有来得及写。
> > > > > > > >
> > > > > > > >
> > > 另外,老大你前几天把FlashPlayer的那个文件干掉之后,我用rake就构建失败了,不知道怎么回事。。。。。(俺Ruby水平实在是二把刀)
> > > > > > > >
> > > > > > > >
> > > > > > > > 在08-3-12,Jeff Xiong <gigi...@gmail.com> 写道:
> > > > > > > >
> > > > > > > > > 今天我抽空把CSS locator的child selector做了,类似"css=VBox > VBox >
> > > > > > > > > Text"这样,参见test_locator.flt。
> > > > > > > > >
> > > > > > > > > 为了实现这个功能搞得Selector类很龌龊,如果接下来还想实现descendant selector(类似"css=VBox
> > > > > > Text")必须先重构了。
> > > > > > > > >
> > > > > > > > > 接下来我要想办法处理Alert。
> > > > > > > > >
> > > > > > > > > 鼠标同志做自定义控件的测试进展如何了?
> > > > > > > > >
> > > > > > > > > 对HTML runner有什么想法?
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Jeff Xiong
> > > > > > > > > Software Journeyman - http://gigix.thoughtworkers.org
> > > > > > > > > Open Source Contributor - http://fluorida.googlecode.com/
> > > > > > > > > Technical Evangelist - http://www.infoq.com/cn/
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > >
> > > > > > > > 鼠标
> > > > > > > > =======
> > > > > > > > 我的博客:http://www.blogjava.net/tj19832
> > > > > > > > 我的twitter:http://twitter.com/tj19832
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > 鼠标
> > > > > > > =======
> > > > > > > 我的博客:http://www.blogjava.net/tj19832
> > > > > > > 我的twitter:http://twitter.com/tj19832
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 鼠标
> > > > > > =======
> > > > > > 我的博客:http://www.blogjava.net/tj19832
> > > > > > 我的twitter:http://twitter.com/tj19832
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Jeff Xiong
> > > > > Software Journeyman - http://gigix.thoughtworkers.org
> > > > > Open Source Contributor - http://fluorida.googlecode.com/
> > > > > Technical Evangelist - http://www.infoq.com/cn/
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > 鼠标
> > > > =======
> > > > 我的博客:http://www.blogjava.net/tj19832
> > > > 我的twitter:http://twitter.com/tj19832
> > >
> > >
> > >
> > >
> > > --
> > > 鼠标
> > > =======
> > > 我的博客:http://www.blogjava.net/tj19832
> > > 我的twitter:http://twitter.com/tj19832
> > > > > >
> > >
> >
> >
> >
> > --
> >
> >
> > Jeff Xiong
> > Software Journeyman - http://gigix.thoughtworkers.org
> > Open Source Contributor - http://fluorida.googlecode.com/
> > Technical Evangelist - http://www.infoq.com/cn/
> >
>
>
>
> --
>
>
> Jeff Xiong
> Software Journeyman - http://gigix.thoughtworkers.org
> Open Source Contributor - http://fluorida.googlecode.com/
> Technical Evangelist - http://www.infoq.com/cn/
>

--
Jeff Xiong
Software Journeyman - http://gigix.thoughtworkers.org
Open Source Contributor - http://fluorida.googlecode.com/
Technical Evangelist - http://www.infoq.com/cn/

咖啡屋的鼠标

unread,
Mar 15, 2008, 12:10:39 AM3/15/08
to fluo...@googlegroups.com
Sorry,I forgot to update "default.fls".

In fact we could remove all popup window by PopUpManager but never trigger CloseEvent.

So whatever popup window is Alert or a custom window, we also need invoke the close button or something to close it.

If it is only a custom window,the writer of script will know its structure and write the script to operate it as a simple custom component.

But, if it is a component in some library just like aswing or the others.......
It's would be complex.

在08-3-15,Jeff Xiong <gigi...@gmail.com> 写道:

咖啡屋的鼠标

unread,
Mar 19, 2008, 1:44:32 PM3/19/08
to fluo...@googlegroups.com
I realized we don't need to close any popup window by ClosePopUp action. But we should find out some way to operate a popup dialog easy for script writer.
 I updated "aut_customcomponent.mxml". Associated test cases don't work now. So, I commented out them from "default.fls".
I commit a more complex component. There are many components that we never test and a custom compoennt in it.And It has a popup dialog for input.It will be a good test case for us.

在08-3-15,咖啡屋的鼠标 <tj1...@gmail.com> 写道:

Jeff Xiong

unread,
Mar 20, 2008, 8:50:07 AM3/20/08
to fluo...@googlegroups.com
Great...can you make it work in a few days? I'm afraid I don't have
any spare time to look after it before next week.

By the way, I just showcased Fluorida to a customer this afternoon and
they felt fairly impressive although they would be never possible to
use it ^_^

2008/3/20 咖啡屋的鼠标 <tj1...@gmail.com>:

Jeff Xiong

unread,
Mar 20, 2008, 9:28:39 AM3/20/08
to fluo...@googlegroups.com
And I would like to keep consistent with Selenium. Shall we have a new
action "SelectWindow" and remove "ClosePopup"?

2008/3/20 Jeff Xiong <gigi...@gmail.com>:

咖啡屋的鼠标

unread,
Mar 20, 2008, 10:52:42 PM3/20/08
to fluo...@googlegroups.com
I try my best.
We should have a new action.But we don't need to remove "ClosePopup".Because "ClosePopup" could be used to close Alert and TitleWindow whose structure script writer don't know. I think we can support both of them.

在08-3-20,Jeff Xiong <gigi...@gmail.com> 写道:
Reply all
Reply to author
Forward
0 new messages