What is my mistake? It is always ignoring the <confirm/> step. Button with
label='OK' could not be found.

 

HTML-Code:

 

<tr class="rowhead">

<td class="caption" rowspan="1" colspan="1">

<br clear="none">

<form method="POST" name="frmDecline14162" action=""
enctype="application/x-www-form-urlencoded" id="frmDecline14162"><input
name="DECLINE_ORDER_STR_ID" value="14164" type="hidden"/>

<a name="14164" target="_self" onclick="if (confirm('Delete Order?'))
forms.frmDecline14164.submit();" shape="rect" id="14164">delete Order</a>

</form>

</td>

</tr>

 

 

Xml:

 

<project default="test">

 

                <import file="../../../definitions.xml"/>

 

                <target name="test" depends="wt.defineMacros">

 

                <webtest name="tests_for_release_20101215">

 

<config

      host="192.168.2.113"

      protocol="http"

      basepath=""

      summary="true"

      saveresponse="true"

      browser="FF3"

      haltonfailure="false"

      easyajax="true">

      <header name="Accept-Language" value="de"/>

      <option name="JavaScriptEnabled" value="true"/>

      <option name="ThrowExceptionOnScriptError" value="false"/>

  </config>

 

      <selectForm name="frmDecline14164}"/>

 

      <clickLink htmlId="#{orderID}"/>

   

      <expectDialogs>

        <confirm text="Delete Order?" response="YES"/>

      </expectDialogs>

 

                               </webtest>

               </target>

</project>

 

Greetz Tobias

 

Reply via email to