Search in sources :

Example 6 with SeleniumWRadioButtonSelectWebElement

use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWRadioButtonSelectWebElement in project wcomponents by BorderTech.

the class WRadioButtonSelectExample_Test method testGetOption.

@Test
public void testGetOption() {
    SeleniumWRadioButtonSelectWebElement interactive = getExampleNoSelection();
    SeleniumWRadioButtonSelectWebElement disabled = getDisabledExample();
    SeleniumWRadioButtonSelectWebElement readOnly = getReadOnlyExampleWithSelection();
    // by index
    Assert.assertNotNull(interactive.getOption(0));
    Assert.assertNotNull(readOnly.getOption(0));
    Assert.assertNotNull(disabled.getOption(0));
    // by label
    Assert.assertNotNull(interactive.getOption("Outside Australia"));
    Assert.assertNotNull(readOnly.getOption("Outside Australia"));
    Assert.assertNotNull(disabled.getOption("Outside Australia"));
}
Also used : SeleniumWRadioButtonSelectWebElement(com.github.bordertech.wcomponents.test.selenium.element.SeleniumWRadioButtonSelectWebElement) Test(org.junit.Test)

Aggregations

SeleniumWRadioButtonSelectWebElement (com.github.bordertech.wcomponents.test.selenium.element.SeleniumWRadioButtonSelectWebElement)6 Test (org.junit.Test)6 WebElement (org.openqa.selenium.WebElement)4 ByLabel (com.github.bordertech.wcomponents.test.selenium.ByLabel)1 SeleniumWComponentsWebDriver (com.github.bordertech.wcomponents.test.selenium.driver.SeleniumWComponentsWebDriver)1