Search in sources :

Example 61 with App

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

the class ActionGetIT method negativeGetAlertTest.

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

Example 62 with App

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

the class ActionGoIT method deleteAllCookiesErrorTest.

@Test(groups = { "integration", "actions", "go" }, description = "An integration test to check the deleteAllCookies method")
public void deleteAllCookiesErrorTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.killDriver();
    app.deleteAllCookies();
    // verify 1 issue
    finish(1);
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 63 with App

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

the class ActionGoIT method goForwardOnePageNoForwardTest.

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

Example 64 with App

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

the class ActionGoIT method maximizeScreenTest.

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

Example 65 with App

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

the class ActionGoIT method deleteAllCookiesTwiceTest.

@Test(groups = { "integration", "actions", "go" }, description = "An integration test to check the deleteAllCookies method")
public void deleteAllCookiesTwiceTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.deleteAllCookies();
    app.deleteAllCookies();
    Cookie cookie = app.get().cookie("cookie");
    org.testng.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)

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