use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetDropdownByHighIdx.
@Test(expected = IllegalArgumentException.class)
public void testGetDropdownByHighIdx() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_SOME_SELECTED);
component.getDropdown(WMultiDropdownTestingExample.DATA_SOME_SELECTED.size());
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetDropdownByTextNull.
@Test(expected = IllegalArgumentException.class)
public void testGetDropdownByTextNull() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_SOME_SELECTED);
component.getDropdown(null);
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testEnabled.
@Test
public void testEnabled() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_SOME_SELECTED);
Assert.assertTrue(component.isEnabled());
component = getByLabel(WMultiDropdownTestingExample.LABEL_DISABLED);
Assert.assertFalse(component.isEnabled());
component = getByLabel(WMultiDropdownTestingExample.LABEL_RO_SOME_SELECTED);
Assert.assertFalse(component.isEnabled());
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetRemoveButtonNull.
@Test(expected = IllegalArgumentException.class)
public void testGetRemoveButtonNull() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_ALL_SELECTED);
component.getRemoveButton(null);
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetDropdownByLowIdx.
@Test(expected = IllegalArgumentException.class)
public void testGetDropdownByLowIdx() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_SOME_SELECTED);
component.getDropdown(-1);
}
Aggregations