From: Marc G. <mgu...@ya...> - 2005-06-03 18:45:29
|
Hi Jean-Philippe, this is a bug. Can you open a bug issue on sourceforge? Marc. Jean-Philippe HILAIRE wrote: > Sorry Marc, > this is the good code. > > HtmlSelect testSelect= > thisForm.getSelectByName(TEST_SELECT_NAME); > assertTrue(testSelect.isMultipleSelectEnabled());//OK > HtmlOption testOption = > testSelect.getOptionByValue("002"); > testOption.click(); > assertTrue(testOption.isSelected());//KO > > > --- Marc Guillemot <mgu...@ya...> a écrit : > > >>Hi, >> >>what is "localengine"? >> >>Marc. >> >>Jean-Philippe HILAIRE wrote: >> >>>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 >> >>> >>> > ------------------------------------------------------- > >>>This SF.Net email is sponsored by Yahoo. >>>Introducing Yahoo! Search Developer Network - >> >>Create apps using Yahoo! >> >>>Search APIs Find out how you can build Yahoo! >> >>directly into your own >> >>>Applications - visit >> > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >>>_______________________________________________ >>>Htmlunit-user mailing list >>>Htm...@li... >>> >> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >> >> >> > ------------------------------------------------------- > >>This SF.Net email is sponsored by Yahoo. >>Introducing Yahoo! Search Developer Network - Create >>apps using Yahoo! >>Search APIs Find out how you can build Yahoo! >>directly into your own >>Applications - visit >> > > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >>_______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >> > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > _____________________________________________________________________________ > 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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 |