use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkElementTypeTest.
@Test
public void checkElementTypeTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertEquals(element.getType(), Locator.ID);
}
use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkFullElementMatchTest.
@Test
public void checkFullElementMatchTest() {
Element element = new Element(null, null, Locator.ID, "myId", 2);
Assert.assertEquals(element.getMatch(), 2);
}
use of com.coveros.selenified.element.Element in project selenified by Coveros.
the class ElementTest method checkPrettyOutputStartTest.
@Test
public void checkPrettyOutputStartTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertEquals(element.prettyOutputStart(), "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 checkPrettyOutputLowercaseTest.
@Test
public void checkPrettyOutputLowercaseTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertEquals(element.prettyOutputLowercase(), "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 checkElementMatchTest.
@Test
public void checkElementMatchTest() {
Element element = new Element(null, null, Locator.ID, "myId");
Assert.assertEquals(element.getMatch(), 0);
}