use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWLabelWebElement in project wcomponents by BorderTech.
the class WLabelExample_Test method testGetComponentReadOnly.
@Test
public void testGetComponentReadOnly() {
SeleniumWComponentsWebDriver driver = getDriver();
SeleniumWLabelWebElement label = driver.findWLabel(byWComponentPath("WLabel[2]"));
Assert.assertTrue(label.isReadOnly());
SeleniumWComponentWebElement expected = driver.findElement(byWComponentPath("WTextField[2]"));
Assert.assertEquals(expected.getAttribute("id"), label.getLabelledComponent().getAttribute("id"));
}
Aggregations