take care to the case:
"OK" != "Ok"

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com

Klima, David wrote:
> Hi,
> 
> In one test, I have a clickButton test that succeeds, and then later
> another clickButton step that cannot find the button, even though the
> button exists.  I do not have sufficient knowledge to tell if the
> problem is due to bad HTML on the page being tested, or due to something
> I may be doing incorrectly in webtest. 
> 
> I noticed that the page being tested has the button placed within a form
> that is never named, as in:  <*form class="standardForm"
> action="perspective.htm" method="post">.  *There is no name specified
> for the form.  Might that be the sole source of the problem?
> 
> The faling XML webtest step is below, and under that is the relevant
> HTML from the page being tested, showing the button.
> 
> Any insight or suggestions will be much appreciated.
> 
> Thanks!
> 
> David Klima::
> 
> XML SHOWING clickButton step that fails to find a button:
> 
>    
>    <selectForm index="0" />
>   
>    <setSelectField name="orgCode" value="785" />
>     
>   <clickButton name="OK" />
> 
> -----------------------------------------------------------------------------
> 
> ===RELEVANT HTML FROM PAGE BEING TESTED:====
> 
> 
> <h1>You have logged in to the Electronic Cohort Default Rate Appeal
> System.</h1>
> 
> <p>Your user-id is: ---EDITED OUT</p>
> 
>        
>                 <p>Please select the organization code for your
> perspective</p>
>                 <*form class="standardForm" action="perspective.htm"
> method="post">
>                        
>                                 <input type="hidden" name="userName"
> value="EDITED OUT">
>                        
>                         <div class="row">
>                                
>                                         <label for="orgID">
>                                                 Available Organizations
>                                         </label>
>                                         <select name="orgCode">
>                                                
>                                                         <option value= 785 >
>                                                                
>                                                                 785 -
> RAVINGLAW RELIEF
>                                                         </option>
>                                                
>                                                         <option value= 888 >
>                                                                
>                                                                 888 -
> GRIMM STUDENTS ASSISTANCE
>                                                         </option>
>                                                
>                                         </select>
>                                        
>                         </div>
>                         <div class="row">
>                                
>                         </div>
>                         <br>
>                         <div class="buttons" align="center">
>                                 <input type="image"
> onmouseover="src='images/buttons/button_ok_over.gif';"
> onmouseout="src='images/buttons/button_ok_off2.gif';" name="Ok"
> id="upload" src="images/buttons/button_ok_off2.gif" alt="Ok"
> onclick="this.form.clicked.value='OK';this.form.submit()">
>                         </div>
>                 </form>  
> *
> 
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to