[Webtest] handling multistage popups
Marc Guillemot
webtest@lists.canoo.com
Wed, 12 Oct 2005 10:32:49 +0200
Lothar Märkle wrote:
> On Wed, Oct 12, 2005 at 09:16:49AM +0200, Marc Guillemot wrote:
>
>>selectWindow may help if your original window has a name else... you
>>will have to improve it.
>
>
> What about grouping steps to "threads" using invoke/clickLink like this:
> <invoke url="/mainpage.html" description="open main page"/>
> <clickLink href="window.open" description="open popup window">
> <setInputField ... description="set name of upload file"/>
> <setFileField ... description="set file to upload"/>
> <clickButton ... description="submit form"/>
> <setInputField ... description="set alt text for image"/>
> <clickButton ... description="submit form"/>
> ...response modifies parent window with javascript...
> ...window closes automatically...
> </clickLink>
> ...main page continues...
for me such a scenario could only make sense when the <clickLink> opens
a new window. Even in this case, the "main page" may disappear (for
instance due to a javascript close() called on it from the second window).
In your example, if the popup window closes automatically, the main page
should become the "current" response again without any step for this.
Marc.