Search in sources :

Example 86 with App

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

the class ActionIsIT method isElementPresentMatchTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is present")
public void isElementPresentMatchTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    Assert.assertTrue(app.newElement(Locator.ID, "submit_button", 0).is().present());
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 87 with App

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

the class ActionIsIT method negativeIsAlertPresentTest.

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

Example 88 with App

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

the class ActionIsIT method isSomethingSelectedTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if something is selected from a dropdown")
public void isSomethingSelectedTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    Assert.assertTrue(app.newElement(Locator.ID, "car_list").is().somethingSelected());
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 89 with App

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

the class ActionIsIT method isElementTableTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is a table")
public void isElementTableTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "that").click();
    Assert.assertTrue(app.newElement(Locator.ID, "table").is().table());
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 90 with App

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

the class ActionIsIT method isElementSelectInputTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is input")
public void isElementSelectInputTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    Assert.assertFalse(app.newElement(Locator.ID, "input_box").is().select());
    // verify no issues
    finish();
}
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