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.

Reply via email to