Search in sources :

Example 51 with App

use of com.coveros.selenified.application.App in project selenified by Coveros.

the class ActionGetIT method negativeGetConfirmationTest.

@Test(groups = { "integration", "actions", "get" }, description = "An integration negative test to check the getConfirmation method")
public void negativeGetConfirmationTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.get().confirmation();
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 52 with App

use of com.coveros.selenified.application.App in project selenified by Coveros.

the class ActionGetIT method getTableCellNoCellTest.

@Test(groups = { "integration", "actions", "get" }, description = "An integration test to check the getTableCell method")
public void getTableCellNoCellTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    WebElement cell = app.newElement(Locator.ID, "table").get().tableCell(99, 99);
    Assert.assertNull(cell);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) WebElement(org.openqa.selenium.WebElement) Test(org.testng.annotations.Test)

Example 53 with App

use of com.coveros.selenified.application.App in project selenified by Coveros.

the class ActionGetIT method getElementXPathNotExistTest.

@Test(groups = { "integration", "actions", "get" }, description = "An integration negative test to check the getXPath method")
public void getElementXPathNotExistTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    Assert.assertNull(app.newElement(Locator.ID, "non-existent-name").get().xPath());
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 54 with App

use of com.coveros.selenified.application.App in project selenified by Coveros.

the class ActionGetIT method negativeGetCookieTest.

@Test(groups = { "integration", "actions", "get", "cookie" }, description = "An integration negative test to check the getCookie method")
public void negativeGetCookieTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    Cookie cookie = app.get().cookie("badcookie");
    Assert.assertNull(cookie);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Cookie(org.openqa.selenium.Cookie) Test(org.testng.annotations.Test)

Example 55 with App

use of com.coveros.selenified.application.App in project selenified by Coveros.

the class ActionGetIT method getEvalTest.

@Test(groups = { "integration", "actions", "get" }, description = "An integration test to check the getEval method")
public void getEvalTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    String location = (String) app.get().eval("document.location");
    Assert.assertNull(location);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Aggregations

App (com.coveros.selenified.application.App)501 Test (org.testng.annotations.Test)500 WebElement (org.openqa.selenium.WebElement)15 Cookie (org.openqa.selenium.Cookie)7 Element (com.coveros.selenified.element.Element)6 DateFormat (java.text.DateFormat)4 SimpleDateFormat (java.text.SimpleDateFormat)4 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)4 File (java.io.File)2 InvalidBrowserException (com.coveros.selenified.exceptions.InvalidBrowserException)1 Call (com.coveros.selenified.services.Call)1 HTTP (com.coveros.selenified.services.HTTP)1 MalformedURLException (java.net.MalformedURLException)1