I have tried that to
String[] labels = {"C"};
t.selectOptions("prio", labels);
t.assertSelectedOptionsEqual("prio", labels);
I get the following error
junit.framework.AssertionFailedError: expected:<1> but was:<2>
Regards,
Michael Danielsson
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien HENRY
Sent: den 3 oktober 2007 17:47
To: Usage problems for JWebUnit
Subject: [JWebUnit-users] RE : How to select an option in a Multi SelectionList
Hi,
Try selectOptions(String selectName, String[] labels)
++
Julien
--- [EMAIL PROTECTED] a écrit :
> I have managed to select an option in a normal Selection List, but
> when tryin to do the same with a Multi Selection List I fail.
>
> The HTML looks like this:
> <select multiple name="prio">
> <option selected value="ALL">ALL
> </option><option value="A">A
> </option><option value="B">B
> </option><option value="C">C
> </option></select>
>
>
>
> I have tried
>
> selectOptionByValue("prio", "C");
> selectOption("prio", "C");
>
>
>
> Regards,
> Michael Danielsson
>
>
>
> >
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?
> Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >>
http://get.splunk.com/>
_______________________________________________
> JWebUnit-users mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users