Example #1
0
 @Test
 public void testDeselectAllOptions() throws WidgetException {
   wd.open(url);
   Select s = new Select(selectMultipleLocator);
   s.selectOption("Car");
   s.selectOption("Truck");
   s.deselectAllOptions();
   Assert.assertEquals(null, s.getSelectedOption());
 }
Example #2
0
 @Test(expected = WidgetException.class)
 public void testDeselectAllOptionsException() throws WidgetException {
   wd.open(url);
   Select s = new Select(brokeLocator);
   s.deselectAllOptions();
 }