Try to write it like this;
<expectDialogs description="check for dialogs">
<alert saveProperty="initialDialog" response="true" />
</expectDialogs>
Alexander Tabilog wrote:
>
> Hi,
>
> I wonder if someone can help me with this.
>
> I have these steps in my test:
>
> <expectDialog dialogType="confirm" saveProperty="initialDialog"/>
> <verifyProperty regex="true" name="initialDialog" text=".*This page type
> has been depricated.*"/>
>
> and I am getting this error:
>
> Expected property "initialDialog" to be defined!
>
> This is the part of the code that I am testing:
>
> if ((JQ("input[name='ContentType']").val() == "SPT1" ||
> JQ("input[name='ContentType']").val() == "SPT5") &&
> JQ("input[name='newCreate']").val() == "true") {
> confirmed = window.confirm("This page type
> has been depricated. It has been replaced with the Hi-def. landing page
> type."
> + "\nNo new documents are allowed
> to be created using this template."
> + "\n\nClick OK to goto the Hi-def
> landing page template."
> + "\nClick Cancel to go back to
> the previous page.");
> if (confirmed) {
> window.location =
> "/tools/cm/ecm/cmentry/advancedSearchSql?cType=GTM&srch=mc&cDesc=Go+to+market";
> }
> else {
> window.history.back();
> }
> }
>
>
> I will really appreciate any help I can get.
>
> Thanks.
>
>
--
View this message in context:
http://old.nabble.com/Expected-property-%22initialDialog%22-to-be-defined%21-tp30144685p34052383.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest