Search in sources :

Example 96 with App

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

the class AssertEqualsIT method negativeCompareCssValueTest.

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

Example 97 with App

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

the class AssertEqualsIT method negativeCompareAttributeValueNotPresentTest.

@Test(groups = { "integration", "asserts", "equals" }, description = "An integration negative test to check the compareAttributeValue method")
public void negativeCompareAttributeValueNotPresentTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "non-existent-element").assertEquals().attribute("display", "inline");
    // verify 1 issue
    finish(1);
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 98 with App

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

the class AssertEqualsIT method compareSelectedTextTest.

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

Example 99 with App

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

the class AssertEqualsIT method negativeCompareAttributeNoAttributeValueTest.

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

Example 100 with App

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

the class AssertEqualsIT method negativeCompareSelectedValueTest.

@Test(groups = { "integration", "asserts", "equals" }, description = "An integration negative test to check the compareSelectedValue method")
public void negativeCompareSelectedValueTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    app.newElement(Locator.ID, "car_list", 0).assertEquals().selectedValue("wrong value");
    // 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