Dear All,
I use a framework that generates all the form included
input types of any kind.... it gives to all form
elements proprietary names that I cannot discover at
runtime.
So is very difficult to use jwebunit to test this kind
of forms.
But I can use the id attribute for every form element,
button, submit... so now I'm asking you if I can access
(set, get the form values) using the ID...
Now I have a code snipped like this:
private String getNameByID(String ID,WebResponse resp)
{
String result=null;
HTMLElement testo;
try {
testo=resp.getElementWithID("firstname");
result=testo.getName();
}
catch (Exception e)
{
System.out.println("exception...to debug...");
}
return result;
}
I pass tho this method the "ID" and the httpunid
webresponse object to get the "name" of a form element...
I don't think this is an "optimal" solution....
Could you extend jwebunit to get this feature available?
Many thanks
Ivan
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users