I found the problem. Default the "ALL" option is set and when I select the "C" option 2 options are selected.
I only expected the "C" option to be set. How do I unselect the "ALL" option? Regards, Michael Danielsson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien HENRY Sent: den 8 oktober 2007 13:52 To: Usage problems for JWebUnit Subject: [JWebUnit-users] RE : How to select an option in a MultiSelectionList Perhaps this feature is not well implemented. As I don't have time to improve JWebUnit now, could you please provide a patch. Thanks Julien --- [EMAIL PROTECTED] a écrit : > How do I do to select one or more options in a Multi Selection List > > 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 both > > selectOptionByValue("prio", "C"); > selectOption("prio", "C"); > > and > > String[] labels = {"C"}; > t.selectOptions("prio", labels); > > > but I can't get it to work. > > Any ideas? > > It works for Non Multi Selection Lists. > > I didn't find any tests for selectOptions. Have I missed it or are > there no tests? > > > > 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 > JWebUnit-users@lists.sourceforge.net > 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 JWebUnit-users@lists.sourceforge.net 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 JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users