Search in sources :

Example 66 with App

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

the class ActionGoIT method deleteCookieTest.

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

Example 67 with App

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

the class ActionGoIT method refreshPageHardErrorTest.

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

Example 68 with App

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

the class ActionGoIT method goBackOnePageNoBackTest.

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

Example 69 with App

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

the class ActionGoIT method goForwardOnePageErrorTest.

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

Example 70 with App

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

the class ActionGoIT method deleteNonExistentCookieTest.

@Test(groups = { "integration", "actions", "go" }, description = "An integration test to check the deleteCookie method")
public void deleteNonExistentCookieTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.deleteCookie("new_cookie");
    // verify 1 issue
    finish(1);
}
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