use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkFullElementTypeTest.
@Test
public void checkFullElementTypeTest() {
Element element = new Element(null, null, Locator.ID, "myId", 2);
Assert.assertEquals(element.getType(), Locator.ID);
}
use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkFullElementLocatorTest.
@Test
public void checkFullElementLocatorTest() {
Element element = new Element(null, null, Locator.ID, "myId", 2);
Assert.assertEquals(element.getLocator(), "myId");
}
use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkPrettyOutputTest.
@Test
public void checkPrettyOutputTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertEquals(element.prettyOutput(), " element with <i>ID</i> of <i>myId</i> ");
}
use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkElementLocatorTest.
@Test
public void checkElementLocatorTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertEquals(element.getLocator(), "myId");
}
use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkElementWebDriverTest.
@Test
public void checkElementWebDriverTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertNull(element.getDriver());
}