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"));
}
Aggregations