Feature Requests item #1022907, was opened at 2004-09-06 02:09
Message generated for change (Comment added) made by jimweaver
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1022907&group_id=61302
Category: None
Group: None
>Status: Deleted
Priority: 5
Submitted By: Ivan Codarin (codarin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Access to form elements by ID
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Jim Weaver (jimweaver)
Date: 2004-09-21 15:26
Message:
Logged In: YES
user_id=619947
duplicate
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1022907&group_id=61302
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development