[Webtest] Problem to submit form with <BUTTON>
Xavier MOGHRABI
webtest@lists.canoo.com
Mon, 18 Oct 2004 11:49:10 +0200
Le lundi 18 Octobre 2004 10:58, Dierk Koenig a =E9crit=A0:
> Hi Xavier,
>
> > 1. The Button element can have the attributes name and value.
> > The value attribute is sent to the server when submitted.
> > So we should add an other for relating to the content between the
> > button tags.
> > That content is displayed. I've chosen the name text for relating to the
> > content because HTTPUNIT 1.6 relates to it with text too.
>
> I understand. I was more concerned with getting "what the user sees" close
> to "what the webtest looks like".
> If text is given, it appears as the button label.
Yes it does.
> If text is not given but value, the value appears as label.
No it doesn't. Only the text between tags is displayed. The value isn't=20
deplayed.
> If neither is given, some default appears depending on type.
It appears as an empty button.
> I'm not so much concerned with what actually gets submitted as
> this makes no difference to the user (neither to webtest).
> Also the appropriate mapping to
> the httpunit methods can all be done behind the scenes.
> I agree that the above makes the mapping of
> html attributes to httpunit method calls less obvious.
>
> There also is the issue of locating the proper button.
> Here the availability of both "text" and "value" would allow
> one more information for distinction.
> For my personal taste the pro "ease of use" would weigh out
> the cons "ease of mapping" and "one more locating option".
> What is your rating?
Ok we can say that label refers to value attribute and if value is empty,=20
label refers to text between tags. Do you agree that we go in that way ?
> cheers
> Mittie
=2D-=20
Xavier MOGHRABI - Consortium ObjectWeb
Email : xavier.moghrabi at inrialpes.fr
Phone : +33 4 76 61 55 25