Hi,
I'm having a problem where I need to verify that there were no alerts in a web page.
Before the fix for an issue in my application an alert box pops up
I can test that this is the case with code like :
<expectDialog dialogType="alert" saveProperty="simpleDialog" />
<invoke url="/myurl" stepid=""/>
<verifytitle text="My App Title" stepid=""/>
<verifyProperty name="simpleDialog" text="my_bug_alert"/>
After the fix for the issue, no alert box is expected and if I try on a browser I do not see any alert box popup.
How do I test that no alert box popups up ?
I tried :
<expectDialog dialogType="alert" saveProperty="simpleDialog" />
<invoke url="/myurl" stepid=""/>
<verifytitle text="My App Title" stepid=""/>
<verifyNoDialogs description="Check all dialogs were used" />
which fails with
"Dialogs found but none expected!"
What am I doing wrong ?
I'm a noob to Canoo WebTest and not sure how to achieve this with Canoo WebTest.
thanks in advance,
Hari