Hi Clinton,
AFAIK, it is currently impossible. If you know the names of your form
parameters are stable enought, you can do something like this :
String[] params = new String[] {"param1", "param2", "param3"};
String[] values = new String[] {"value1", "value2", "value3"};
for (int i=0; i<param.length; i++) {
setFormParameter(params[i], value[i]);
}
But there is no method to automatically get params array. Therefore, it is very
easy to add (at least for HtmlUnit plugin). You can open a feature request, and
possibly provide a patch.
++
Julien
----- Message d'origine ----
De : "Parham, Clinton" <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Jeudi, 14 Décembre 2006, 19h28mn 50s
Objet : [Jwebunit-users] Iterate over form elements
Hello,
Is there a way to iterate over form elements? I would like to iterate
over elements and set their values as they appear on the rendered
webpage so JavaScript actions are executed in a well defined order.
Anyone know how?
Thanks.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users