[Webtest] handling multistage popups
Lothar Märkle
webtest@lists.canoo.com
Wed, 12 Oct 2005 11:22:49 +0200
On Wed, Oct 12, 2005 at 10:32:49AM +0200, Marc Guillemot wrote:
> 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.
Yes, this would be the same and simpler, but not that explicit. Do you know if Rhino and
htmlunit can handle javascript with window.opener?
lothar
>
> Marc.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
--
Lothar Märkle - lothar.maerkle@netpioneer.de
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30