Search in sources :

Example 6 with App

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

the class ActionDoIT method typeSelectTest.

@Test(groups = { "integration", "actions", "do", "type", "browser" }, description = "An integration test to check the type method")
public void typeSelectTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "car_list").type("A");
    app.newElement(Locator.ID, "car_list").assertEquals().selectedValue("audi");
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 7 with App

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

the class ActionDoIT method selectValueNotInputTest.

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

Example 8 with App

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

the class ActionDoIT method killDriverErrorTest.

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

Example 9 with App

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

the class ActionDoIT method typeKeysInputTest.

@Test(groups = { "integration", "actions", "do", "type", "browser" }, description = "An integration test to check the type method")
public void typeKeysInputTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "input_box", 0).type(Keys.TAB);
    app.azzert().alertPresent();
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 10 with App

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

the class ActionDoIT method selectOptionNotExistTest.

@Test(groups = { "integration", "actions", "do", "select" }, description = "An integration negative test to check the select method")
public void selectOptionNotExistTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.PARTIALLINKTEXT, "non-existent-element").selectOption("option");
    // 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