Search in sources :

Example 11 with App

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

the class ActionDoIT method submitAlertTest.

@Test(groups = { "integration", "actions", "do", "submit", "browser" }, description = "An integration negative test to check the submit method")
public void submitAlertTest() {
    // 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, "submit_button").submit();
    // verify 1 issue
    finish(1);
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 12 with App

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

the class ActionDoIT method typeKeysNotInputTest.

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

Example 13 with App

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

the class ActionDoIT method moveAtTest.

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

Example 14 with App

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

the class ActionDoIT method goToURLTest.

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

Example 15 with App

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

the class ActionDoIT method clickNotExistTest.

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