Search in sources :

Example 91 with App

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

the class NoBrowserIT method verifyNoBrowser.

@Test(groups = { "integration" }, description = "An integration test to verify we can start a test without a browser")
public void verifyNoBrowser() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // verify no selenium actions class was setup
    Assert.assertNull(app);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 92 with App

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

the class POMSampleIT method sampleTest.

@Test(groups = { "sample", "pom" }, description = "A sample test using a data provider to perform searches")
public void sampleTest() {
    // grab our main app object
    App app = this.apps.get();
    // grab our main threadsafe object for future use
    MainPage main = this.main.get();
    // our test actions
    main.generateAlert();
    app.acceptAlert();
    app.azzert().alertNotPresent();
    // close out the test
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 93 with App

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

the class AssertEqualsIT method negativeCompareSelectedTextNotEnabledTest.

@Test(groups = { "integration", "asserts", "equals" }, description = "An integration negative test to check the compareSelectedText method")
public void negativeCompareSelectedTextNotEnabledTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "alert_button").assertEquals().selectedOption("wrong value");
    // verify 1 issue
    finish(1);
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 94 with App

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

the class AssertEqualsIT method compareInputValueTest.

@Test(groups = { "integration", "asserts", "equals" }, description = "An integration test to check the compareCssValue method")
public void compareInputValueTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "that").assertEquals().value("That");
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 95 with App

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

the class AssertEqualsIT method negativeCompareTextValueNotPresentTest.

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