Search in sources :

Example 81 with App

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

the class ActionIsIT method isSomethingNotCheckedTest.

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

Example 82 with App

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

the class ActionIsIT method negativeIsPromptPresentTest.

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

Example 83 with App

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

the class ActionIsIT method negativeIsTextPresentInSourceTest.

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

Example 84 with App

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

the class ActionIsIT method isSomethingNotSelectedTest.

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

Example 85 with App

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

the class ActionIsIT method isElementTableNotExistTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is a table")
public void isElementTableNotExistTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    Assert.assertFalse(app.newElement(Locator.ID, "non-existent-name").is().table());
    // 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