Hi Mojca,

setParameterValue was deprecated because HttpUnit was working at HTTP level, 
and now HtmlUnit is working with HTML elements. You should now choose the 
method that correspond to the form HTML element:
setTextField(String, String) for input/text input/file and textarea
checkCheckbox(String)
clickRadioOption(String, String)

There is also the deprecated setFormElement(String, String) that will work like 
setParameterValue. Someone ask me to reintroduce setFormElement in next 
JWebUnit version, for those who wants to set a form parameter without care of 
HTML element. So I suppose you can use setFormElement, even if it is deprecated.

Concerning setEncodingScheme, I remember it was removed because it was useless 
(was it ?). Why were you using it? Could you try to simply remove it?

++

Julien


----- Message d'origine ----
De : Mojca Kogoj <[EMAIL PROTECTED]>
À : jwebunit-users@lists.sourceforge.net
Envoyé le : Vendredi, 20 Avril 2007, 12h53mn 11s
Objet : [JWebUnit-users] setEncodingScheme and setParameterValue




 
 

<!--

 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times 
New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;color:windowtext;}
 _filtered {margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {}
-->






Hi,
 

  
 

I was using JWebUnit 1.2. Now I want to upgrade my tests and
start using JWebUnit 1.4. I have solved some problems until now, but there
still  remain some questions…
 

  
 

What can I use instead of:
 

  
 

getDialog().getForm().getScriptableObject().setParameterValue(String,
String);
 

getTestContext().setEncodingScheme('UTF-8');
 

  
 

Regards
 

Mojca
 




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
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
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to