Hi,
selectOption("list10","1003");
selectOptionByValue("list10","1003");
should definitly work (there are different test cases in JWebUnit). Perhaps
onchange Javascript event is breaking something...
Feel free to provide a full example that reproduce the bug.
++
Julien
----- Message d'origine ----
De : Mojca Kogoj <[EMAIL PROTECTED]>
À : jwebunit-users@lists.sourceforge.net
Envoyé le : Vendredi, 4 Mai 2007, 12h39mn 33s
Objet : [JWebUnit-users] selecting value from drop-down menu
<!--
/* 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;}
pre
{margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier
New";}
span.EmailStyle18
{font-family:Arial;color:windowtext;}
_filtered {margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{}
-->
I have a drop-down menu. Html looks like this:
<tr> <td align="left" nowrap><span
id="fld010">Vrsta:</span></td> <td align="left"
width="90%"><select name="list10" onchange="__doPostBack('list10','')"
language="javascript" id="list10" style="width:98%;"> <option
value="1001">1001 </option> <option value="1003">1003 </option>
<option value="1089">1089</option> <option
value="1090">1090 </option> </select></td>
</tr> In JWebUnit 1.2 I selected an item from this drop-down menu
with:
setFormElement( 'list10', '1003' );
Now, using JWebUnit 1.4, this doesn't work anymore. I tried also:
setTextField("list10","1003");
selectOption("list10","1003");
selectOptionByValue("list10","1003");
…but nothing works.
Can you please tell me what to use instead?
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