[Webtest] TypeError: Cannot find function iterateNext (R1649)

Robert Bodziony Robert Bodziony" <robert.bodziony@gmail.com
Tue, 15 Jan 2008 15:22:11 +0100


------=_Part_14633_18053335.1200406931100
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hi
 ive got problem with latests build (1649) :(

here is what i see as error for Firefox:...
JavaScript error loading page
http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html:
TypeError: Cannot find function iterateNext. (script in
http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html from (14,
34) to (0, 0)#17)
....
"
 For IE ive got other error
 I've attached sample demo to catch this issue
 Regards,
 Ronbert


<project name="demo.IterateNext" default="test">

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

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

        <webtest name="check IterateNext - firefox">
            <config>
                <header name="User-Agent" value="Mozilla/5.0 (Windows; U;
Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"/>
            </config>
            <invoke url="
http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html" />
            <sleep seconds="10"/>
            <clickButton xpath="//form[1]/button"/>
            <sleep seconds="10"/>
        </webtest>
        <webtest name="check IterateNext - ie">
            <config>
                <header name="User-Agent" value="Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1; http://bsalsa.com) ; .NET CLR 1.1.4322; .NET CLR
2.0.50727; FDM)" />
            </config>
            <invoke url="
http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html" />
            <sleep seconds="10"/>
            <clickButton xpath="//form[1]/button"/>
            <sleep seconds="10"/>
        </webtest>




    </target>
</project>

------=_Part_14633_18053335.1200406931100
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hi <br>&nbsp;ive got problem with latests build (1649) :(<br><br>here is what i see as error for Firefox:... <br>JavaScript error loading page
<a href="http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html">http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html</a>:
TypeError: Cannot find function iterateNext. (script in
<a href="http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html">http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html</a> from
(14, 34) to (0, 0)#17)<br>....<br>&quot;<br>&nbsp;For IE ive got other error<br>&nbsp;I&#39;ve attached sample demo to catch this issue<br>&nbsp;Regards,<br>&nbsp;Ronbert<br><br><br>&lt;project name=&quot;demo.IterateNext&quot; default=&quot;test&quot;&gt;
<br><br>&nbsp;&nbsp;&nbsp; &lt;import file=&quot;../definitions.xml&quot; /&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;target name=&quot;test&quot; depends=&quot;wt.defineMacros&quot;&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;webtest name=&quot;check IterateNext - firefox&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:<a href="http://1.8.1.3">1.8.1.3</a>) Gecko/20070309 Firefox/2.0.0.3&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;invoke url=&quot;<a href="http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html">http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html</a>&quot; /&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sleep seconds=&quot;10&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;clickButton xpath=&quot;//form[1]/button&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sleep seconds=&quot;10&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;webtest name=&quot;check IterateNext - ie&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
<a href="http://bsalsa.com">http://bsalsa.com</a>) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;invoke url=&quot;<a href="http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html">
http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html</a>&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sleep seconds=&quot;10&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;clickButton xpath=&quot;//form[1]/button&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sleep seconds=&quot;10&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br><br><br><br><br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;<br>&lt;/project&gt;<br>

------=_Part_14633_18053335.1200406931100--