Search in sources :

Example 76 with App

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

the class ActionIsIT method isElementTableNotTest.

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

Example 77 with App

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

the class ActionIsIT method isElementCheckedNotExistTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is checked")
public void isElementCheckedNotExistTest() {
    // 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().checked());
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 78 with App

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

the class ActionIsIT method isPromptPresentTest.

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

Example 79 with App

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

the class ActionIsIT method isSomethingCheckedTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if something is selected from a checkbox")
public void isSomethingCheckedTest() {
    // 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, "that", 0).is().somethingSelected());
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 80 with App

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

the class ActionIsIT method isElementSelectNotExistTest.

@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is input")
public void isElementSelectNotExistTest() {
    // 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().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