[Webtest] [dev] right behavior for popup windows?
Paul King
webtest@lists.canoo.com
Fri, 05 Aug 2005 00:25:24 +1000
Marc Guillemot wrote:
> Hi,
>
> I'm working on changing the logic of "how to determine the current
> window" to better handle multiple windows (like popups).
>
> I wanted to make a window that pops up the "current" window, because I
> think that it "better" represent what is "natural": in a browser, when a
> window pops up, it is the one on which we have to do something. Further
> reason: imagine an application that opens a popup without giving it a
> name. How to "select" the just opened window in this case?
>
> I'm testing this new behavior but have one failing test because it
> doesn't expect that the popuped window became the current one
>
> selectWindow.xml:
>
> <invoke description="try the popup" url="selectWindowMain.html"/>
> <verifyTitle text="SelectWindow Main Page"/>
>
> and selectWindowMain.html directly opens a new window when loaded.
>
> Ok to change this selftest?
I think so. We should just carefully explain the consequences to users.
In most cases, no change will be noticed. In a small number of cases, they
will have steps which are now harmlessly redundant and in very rare cases
some users current test specifications will break and need to be updated.
Cheers, Paul.