use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWLabelWebElement in project wcomponents by BorderTech.
the class WLabelExample_Test method testIsHidden.
@Test
public void testIsHidden() {
SeleniumWLabelWebElement label = getDriver().findWLabel(byWComponentPath("WLabel[1]"));
Assert.assertTrue(label.isHidden());
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWLabelWebElement in project wcomponents by BorderTech.
the class WLabelExample_Test method testGetComponentComplex.
@Test
public void testGetComponentComplex() {
SeleniumWComponentsWebDriver driver = getDriver();
SeleniumWLabelWebElement label = driver.findWLabel(byWComponentPath("WLabel[7]"));
SeleniumWComponentWebElement expected = driver.findElement(byWComponentPath("WCheckBoxSelect[1]"));
Assert.assertEquals(expected.getAttribute("id"), label.getLabelledComponent().getAttribute("id"));
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWLabelWebElement in project wcomponents by BorderTech.
the class WLabelExample_Test method testIsReadOnly.
@Test
public void testIsReadOnly() {
SeleniumWLabelWebElement label = getDriver().findWLabel(byWComponentPath("WLabel[2]"));
Assert.assertTrue(label.isReadOnly());
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWLabelWebElement in project wcomponents by BorderTech.
the class WLabelExample_Test method testGetByTextHidden.
@Test
public void testGetByTextHidden() {
SeleniumWLabelWebElement label = getDriver().findWLabel(byWComponentPath("WLabel[1]"));
Assert.assertTrue(label.isHidden());
String text = label.getText();
Assert.assertNotNull(getDriver().findWLabelWithPartialText(text));
}
use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWLabelWebElement in project wcomponents by BorderTech.
the class WLabelExample_Test method testGetComponentSimple.
@Test
public void testGetComponentSimple() {
SeleniumWComponentsWebDriver driver = getDriver();
SeleniumWLabelWebElement label = driver.findWLabel(byWComponentPath("WLabel[0]"));
SeleniumWComponentWebElement expected = driver.findElement(byWComponentPath("WTextField[0]"));
Assert.assertEquals(expected.getAttribute("id"), label.getLabelledComponent().getAttribute("id"));
}
Aggregations