Hi All
I'm new to using web testing and Canoo webtest, i have an xml file using
an Ant script to run the file,Using Linux OS
I'm having problems with the clickButton tag,i'm trying to click the
login button so it can take me to another page.Everything is running
fine up until the clickButton line.


<project name="UpdateAppraisal" basedir="." default="wt.full">

  <property name="webtest.home" location="/opt/webtest" />
  <import file="/opt/webtest/webtest.xml"/>
        

  <target name="wt.testInWork">
    <webtest name="Update An Appraisal">
        <config
          host="localhost"
          port="8080"
          protocol="http"
          basepath="Application Name" />
          
          <steps>
              <invoke description="get the TAMI Performance Console"
                url="http://url name"   />
                <verifyTitle   description="We should see the login page
title" text="Welcome" />        
        <setInputField description="set username login" 
           name="j_username"
                value="username"/>
        <setInputField description="set password login" 
            name="j_password"
              value="value"/>
                <selectForm name="frmLogin"/>
                   <clickButton name="Submit" label="Login"/>

but i keep coming up with this error

                                    
Error
Message
No button found


Location
/home/phumza/workspace/WebTesting/tests/Tests/updateAppraisalTest.xml
(line: 29)



Details
available buttons
In current form:
[HtmlSubmitInput[<input
type="submit" name="Submit" value="
Login " onclick="submitForm();">]]
Can anyone help me please.
Best Regards
Phumza


 

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to