Search in sources :

Example 1 with App

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

the class ActionDoIT method clickUnderlayTest.

@Test(groups = { "integration", "actions", "do", "click", "browser" }, description = "An integration negative test to check the click method")
public void clickUnderlayTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "underlay_span").click();
    // verify 1 issue
    finish(1);
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 2 with App

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

the class ActionDoIT method negativeScrollTest.

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

Example 3 with App

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

the class ActionDoIT method dismissConfirmationTest.

@Test(groups = { "integration", "actions", "alert", "do" }, description = "An integration test to check the dismissConfirmation method")
public void dismissConfirmationTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.CSS, "input#confirm_button").click();
    app.dismissConfirmation();
    app.azzert().confirmationNotPresent();
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 4 with App

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

the class ActionDoIT method clickTest.

@Test(groups = { "integration", "actions", "do", "click" }, description = "An integration test to check the click method")
public void clickTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.LINKTEXT, "I'M A LINK").click();
    app.azzert().confirmationPresent();
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 5 with App

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

the class ActionDoIT method selectValueAlertTest.

@Test(dataProvider = "car list items", groups = { "integration", "actions", "do", "select", "browser" }, description = "An integration test using a data provider to perform searches")
public void selectValueAlertTest(String listItem) {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "confirm_button").click();
    app.newElement(Locator.ID, "car_list").selectValue(listItem.toLowerCase());
    // 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