Hi, Marc,

Before sending the original e-mail below, I had already tried tried all the 
different cases, by doing the following:

I had already tried the failing clickButton step with "Ok" (the name of the 
button in the HTML) several times---button not found
I had already  tried the failing clickButton step with "OK" (the flyover label 
of the button on-screen) several times---button not found
I already tried the failing clickButton step with "ok" several times---button 
not found

I repeated all of those attempts this morning with the same results---button 
not found.

Do you think the problem is something I am doing incorrectly in webtest?  OR 
might the problem be with the HTML that does not name the form the button is 
located in?

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>  






-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Marc Guillemot
Sent: Friday, February 15, 2008 4:14 AM
To: [email protected]
Subject: Re: [Webtest] Another clickButton "button not found" : bad HTML
on the tested page? OR Am I doing something incorrectly with webtest?


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