use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetRemoveButtonRO.
@Test(expected = SystemException.class)
public void testGetRemoveButtonRO() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_RO_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 testDeselectAll.
@Test
public void testDeselectAll() {
try {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_ALL_SELECTED);
component.deselectAll();
List<WebElement> endSelection = component.getSelected();
Assert.assertEquals(1, endSelection.size());
Assert.assertTrue(WMultiDropdownTestingExample.DATA_LIST.get(0).equalsIgnoreCase(endSelection.get(0).getText()));
} finally {
reset();
}
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetAddButtonReadOnly.
@Test(expected = SystemException.class)
public void testGetAddButtonReadOnly() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_RO_ONE_SELECTED);
component.getAddButton();
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetRemoveButtonFirstDropdown.
@Test(expected = SystemException.class)
public void testGetRemoveButtonFirstDropdown() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_ALL_SELECTED);
component.getRemoveButton(component.getFirstDropdown());
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement in project wcomponents by BorderTech.
the class WMultiDropdownTestingExample_Test method testGetFirstDropdown.
@Test
public void testGetFirstDropdown() {
SeleniumWMultiDropdownWebElement component = getByLabel(WMultiDropdownTestingExample.LABEL_SOME_SELECTED);
Assert.assertNotNull(component.getFirstDropdown());
}
Aggregations