[Webtest] Problem with opening a new window in canoo test

Marc Guillemot webtest@lists.canoo.com
Tue, 06 Apr 2004 16:09:38 +0200

This is a problem due to httpunit and its limitated javascript support and bad window handling. I guess that this would 
work better if we move to htmlunit.


Roma Bhansali wrote:
> Hi,
> I wanted to some help with opening a new window while writing canoo test. My
> code looks like this
> <a href="CustomizeView.do?study=1" onClick="javascript:
> openCustomWin(this,'link')" ><img src="images/customize_view.gif" alt="Click
> here to customize view" name="customize_view" width="119" height="18"
> border="0" id="customize_view"></a>
> In my canoo test I m doing the following:
> 	<clicklink
> 	stepid="Click the customize view button"    
> 	label="Click here to customize view" />
> This however opens the customization window but in the same window. In the
> customization window, there is button that submits the form and closes the
> window and refresh's the opener window. Now, since the customization window
> opens within the same window, it closes the all the windows and the session
> is over.
> Is there a way I can open this customization window in a new window, so when
> it closes it does what is required?
> Appreciate help.
> -Roma
> Roma Bhansali
> Creative Director
> PharmQuest Corporation
> www.pharmquest.com
> Phone: (650)-210-3968
> Fax: (650)-210-3961
> PharmQuest collaborates with the pharmaceutical and biotechnology industries
> to provide software that significantly improves efficiency and compliance in
> the product development process.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest