[Webtest] ExpectDialog

Paul King webtest@lists.canoo.com
Mon, 26 Jun 2006 20:02:37 +1000


Are you using <verifyNoDialogs/> on the previous page?
Perhaps one of the dialogs you were expecting to be
"consumed" hasn't been yet.

Cheers, Paul.

Thomas Colin de Verdière wrote:
> Hello,
> I've the following error, however, the expected dialog box already 
> 'appear' in the previous page.
> So i thought the clickButton won't try to look for a dialog box again. 
> Do you have any idea ?
> 
> Test step clickButton 
> (D:\WebTest\webtests\modules\mainmenu\goCustomermenu.xml:4: )  named "Go 
> to the customer menu" failed with message "Step[clickButton "Go to the 
> customer menu" (29/31)]: Script error loading page executing webtest at: 
> clickButton Wrapped com.canoo.webtest.engine.StepFailedException: 
> Expected dialogs but none found!, Step: ExpectDialog at 
> D:\WebTest\webtests\modules\listactivities\verifieMessageConstanteEchappement.xml:2:  
> with (saveProperty="messageAlert", description="PM_MES_CST_2: expect 
> message alert with ENTER dialog message", dialogType="alert", 
> stepType="expectDialog") (Embedded script in 
> http://localhost:8080/patutorial/vsdemo/fs/Listactivities.srv#6)
> Source code:
> function () {
>        [native code, arity=0]
> }
> "
> 
> Thomas
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
>