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