Search in sources :

Example 11 with Element

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

Example 12 with Element

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

Example 13 with Element

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

Example 14 with Element

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

Example 15 with Element

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());
}
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