use of com.coveros.selenified.application.App in project selenified by Coveros.
the class ActionGoIT method refreshPageErrorTest.
@Test(groups = { "integration", "actions", "go" }, description = "An integration test to check the refreshPage method")
public void refreshPageErrorTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.killDriver();
app.refresh();
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class ActionGoIT method setCookieErrorTest.
@Test(groups = { "integration", "actions", "go" }, description = "An integration test to check the setCookie method")
public void setCookieErrorTest(ITestContext context) throws IOException, ParseException {
String dateval = "2011-11-17T09:52:13";
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
df.setTimeZone(TimeZone.getTimeZone("UTC"));
Cookie cookie = new Cookie("new_cookie", "this_cookie", getTestSite(this.getClass().getName(), context).split("/")[2].split(":")[0], "/", df.parse(dateval));
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.killDriver();
app.setCookie(cookie);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class ActionGoIT method deleteAllCookiesTest.
@Test(groups = { "integration", "actions", "go" }, description = "An integration test to check the deleteAllCookies method")
public void deleteAllCookiesTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.deleteAllCookies();
Cookie cookie = app.get().cookie("cookie");
org.testng.Assert.assertNull(cookie);
// verify no issues
finish();
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class ActionIsIT method isAlertPresentTest.
@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check the isAlertPresent method")
public void isAlertPresentTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.newElement(Locator.ID, "disable_click").click();
app.newElement(Locator.ID, "alert_button").click();
Assert.assertTrue(app.is().alertPresent());
// verify no issues
finish();
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class ActionIsIT method isElementTextAreaTest.
@Test(groups = { "integration", "actions", "is" }, description = "An integration test to check if an element is input")
public void isElementTextAreaTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
Assert.assertTrue(app.newElement(Locator.ID, "textarea_input").is().input());
// verify no issues
finish();
}
Aggregations