[Webtest] Unable to locate a button

Aatish Arora webtest@lists.canoo.com
Tue, 15 Apr 2003 03:42:54 -0700 (PDT)


Hi All,

I have a small problem -
I have a button nested in a table (html code included)
and Canoo is not able to find it :(. It gives me the
following error:

com.canoo.webtest.engine.StepFailedException: Button
with name <Submit> and value <Create > not found!,
Step: ClickButton(id="Click on the Create
button"label=Create )


Its of the type Submit - so the "button" tag issue is
out of the picture.

I tried using the index locator too! but it doesent
wrk :(

Any Clues??

regards,
Aatish

<form>
<div align="center">
  <table width="88%" border="1" cellpadding="3"
cellspacing="0" height="214">
    <tr> 
      <td height="48" colspan="6"> 
        <table width="100%" border="0">
          <tr> 
            <td> 
              <h3 align="center">Class 1</h3>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    
    <tr> 
      <td height="19" colspan="6"> 
        <table width="100%" border="0"></table>
      </td>
    </tr>
    <tr> 
      <td height="62" rowspan="2" width="13%"><b> ID
</b> 
      <td height="62" rowspan="2" colspan="5"><b>Class
Name </b> 
    <tr> 

    
    <tr> 
    
      <td height="31" width="13%"><a
href="class.do">101</a>
      <td height="31" colspan="5">Class1
    <tr>     
    
    <tr> 
    
      <td height="31" width="13%"><a
href="class2.do?">102</a>
      <td height="31" colspan="5">Class2
    <tr>     
    
    <tr> 
    
      <td height="31" width="13%"><a
href="class3.do?">103</a>
      <td height="31" colspan="5">Class3
    <tr>     
    
    <tr> 
    
      <td height="31" width="13%"><a
href="class4.do?">104</a>
      <td height="31" colspan="5">Class4
    <tr>     
    
    <tr> 
    
      <td height="31" width="13%"><a
href="m1">10010</a>
      <td height="31" colspan="5">class 21
    <tr>     
        
    <tr> 
      <td height="38" colspan="6"> 
        <table width="101%" border="0">
          <tr> 
            <td width="12%"> 
              <input type="submit" name="Submit"
value="Create " onClick =
"(location.href='yahoo.do?method=view');">            
 
            </td>
            <td width="6%"><a
href="mno.do?method=list">First</a> 
            </td>
            <td width="8%"><a
href="dec.do?method=list">Previous</a> 
            </td>
            <td width="8%"><a
href="abc.do?method=list">Next</a></td>
            
            <td colspan="2" width="8%"><a
href="xyz.do?method=list">Last</a> </td> 
          </tr>
        </table>
  </table>
</div>
</form>

=====
================================================
Six monkeys pounding on six typewriters at random for a million years will recreate all the works of Isaac Asimov.
================================================

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com