Search in sources :

Example 1 with Element

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);
}
Also used : Element(com.coveros.selenified.element.Element) Test(org.testng.annotations.Test)

Example 2 with Element

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);
}
Also used : Element(com.coveros.selenified.element.Element) Test(org.testng.annotations.Test)

Example 3 with Element

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>");
}
Also used : Element(com.coveros.selenified.element.Element) Test(org.testng.annotations.Test)

Example 4 with Element

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>");
}
Also used : Element(com.coveros.selenified.element.Element) Test(org.testng.annotations.Test)

Example 5 with Element

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);
}
Also used : Element(com.coveros.selenified.element.Element) Test(org.testng.annotations.Test)

Aggregations

Element (com.coveros.selenified.element.Element)18 Test (org.testng.annotations.Test)18 App (com.coveros.selenified.application.App)6