From: Jean-Philippe H. <te...@ya...> - 2005-06-03 10:05:56
|
Hello guys, i have some trouble with mutiple select the select is send in html like this. <select name="test" multiple="multiple"size="5" class="SeHeaderListDb"> <option value="000" selected="selected">All</option> <option value="001">test 1</option> <option value="002">test 2</option> <option value="003">test 3</option> <option value="004">test 4</option> </select> the default option selected is the first one. when i use this code: HtmlSelect testSelect = thisForm.getSelectByName(TEST_SELECT_NAME); assertTrue(testSelect.isMultipleSelectEnabled()); //OK HtmlOption testOption = testSelect.getOptionByValue("002"); localengine.click(); assertTrue(testOption.isSelected());//KO the test fails. I did something wrong or it's the htmlunit behavior ?? thanks in advance!! _____________________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com |