Search in sources :

Example 6 with SeleniumWMultiDropdownWebElement

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);
}
Also used : SeleniumWMultiDropdownWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement) Test(org.junit.Test)

Example 7 with SeleniumWMultiDropdownWebElement

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();
    }
}
Also used : SeleniumWMultiDropdownWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement) WebElement(org.openqa.selenium.WebElement) SeleniumWMultiDropdownWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement) Test(org.junit.Test)

Example 8 with SeleniumWMultiDropdownWebElement

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();
}
Also used : SeleniumWMultiDropdownWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement) Test(org.junit.Test)

Example 9 with SeleniumWMultiDropdownWebElement

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());
}
Also used : SeleniumWMultiDropdownWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement) Test(org.junit.Test)

Example 10 with SeleniumWMultiDropdownWebElement

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());
}
Also used : SeleniumWMultiDropdownWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement) Test(org.junit.Test)

Aggregations

SeleniumWMultiDropdownWebElement (com.github.bordertech.wcomponents.test.selenium.element.SeleniumWMultiDropdownWebElement)28 Test (org.junit.Test)25 WebElement (org.openqa.selenium.WebElement)9 Select (org.openqa.selenium.support.ui.Select)1