AW: [Webtest] button in a table

"Früchtenicht, Gabriele" webtest@lists.canoo.com
Wed, 24 Sep 2003 17:57:58 +0200


Hi Marc,
thanks a lot, you're right. Now I have to find out, why webtest finds the 
inputfield (yes, text) when I use 

<verifyxpath stepid="xpath input field must be present and empty"
                xpath="//input[@name='j_username']"

and not

<verifyinputfield stepid="input field must be present and empty"
               name="j_username"/>

Gabi

-----Ursprüngliche Nachricht-----
Von: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Gesendet: Dienstag, 23. September 2003 14:21
An: webtest@lists.canoo.com
Betreff: Re: [Webtest] button in a table


As I can see, the problem is not with the submit button but with a (text?)
input 
field named "UserID" you try to set in your test script and that doesn't
exist.
The problem is reported when you try to submit the form because webtest
buffers 
the values to set to fields and really sets it only before submitting a form

(that's a strange way, I agree).

Marc.

Früchtenicht, Gabriele wrote:
> hi, 
> 
> is there any chance to locate a submit-button in a table?
> I always get the error message:
> 
> BUILD FAILED
> Test step clickbutton named "Login Button clicken" failed with =
message "No
> such parameter
> in form: UserID"
> 
> <form name="myform" method="POST" action="j_security_check">
> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
>   <TBODY>
>       <TABLE class=formTabelle cellSpacing=0 cellPadding=0 =
border=0>
>         <TBODY>
>         <TR class=hintergrundHell>
>           <TD colSpan=5>
>             <TABLE class=rahmenOben width="100%">
>               <TBODY>
>               <TR>
>                 <TD><IMG class=labelFeldAbstand height=1
>                   src="/spaka/transparent.gif"></TD>
>                 <TD align=middle width="100%"><INPUT =
name="Login"
> class=MPButton type=submit value=Login ></TD>
>                 <TD><IMG class=labelFeldAbstand height=1
>  
>
src="/spaka/transparent.gif"></TD></TR></TBODY></TABLE></TD></TR></TBODY></T
> ABLE></TD>
>     <TD width="5%"><IMG src="/spaka/transparent.gif"
>   width=100></TD></TR></TBODY></TABLE>
>   </form>
> 
> thanks,
> gabi
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 


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