[Webtest] Problem to submit form with <BUTTON>

Dierk Koenig webtest@lists.canoo.com
Mon, 18 Oct 2004 10:58:29 +0200


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.
If text is not given but value, the value appears as label.
If neither is given, some default appears depending on type.
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?

cheers
Mittie