Hi, Everyone

I wrote an easy testcase for a login page. Just invoke the url ,then find
the button by xpath and click it.The form will submint login datas and goto
another page.
the ID and pass word is write in the html, so no need to set input.
I'm srue the xpath is right , it gets wrong at the last step.I don't know is
it Script problem or the JS in the page have any bug. and  I don't think
it's the method "submit" is the real point.

 It will be greatly appreciate if anyone could tell me the reason or your
opinion.
Please DO reply me if you had met the same problem.

thanks

* The error message:*

JavaScript error loading page http://192.xxx.xx.xx:8080/Ash/: TypeError:
Cannot call method "submit" of undefined (script in
http://192.xxxxx.xx:8080/Ash/ from (16, 31) to (0, 0)#37)
*My Script:*

<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
<project default="ifdmsLogintest">

    <target name="ifdmsLogintest">

        <webtest name="check the login founction">
            <invoke url="http://192.xxx.xx.xx:8080/Ash/"; description="Go to
asahi login"/>
            <clickButton xpath="//[EMAIL PROTECTED] = 'button']"
description="login" />

        </webtest>
    </target>
</project>

Reply via email to