Search in sources :

Example 46 with App

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

the class ActionGetIT method getCookieDomainTest.

@Test(groups = { "integration", "actions", "get", "cookie" }, description = "An integration test to check the getCookieDomain method")
public void getCookieDomainTest(ITestContext context) {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    String cookie = app.get().cookieDomain("cookie");
    Assert.assertEquals(cookie, getTestSite(this.getClass().getName(), context).split("/")[2].split(":")[0]);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 47 with App

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

the class ActionGetIT method getTableColumnNotTableTest.

@Test(groups = { "integration", "actions", "get" }, description = "An integration test to check the getTableColumn method")
public void getTableColumnNotTableTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    List<WebElement> column = app.newElement(Locator.ID, "transparent_input").get().tableColumn(1);
    Assert.assertNull(column);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) WebElement(org.openqa.selenium.WebElement) Test(org.testng.annotations.Test)

Example 48 with App

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

the class ActionGetIT method getCookiePathTest.

@Test(groups = { "integration", "actions", "get", "cookie" }, description = "An integration test to check the getCookiePath method")
public void getCookiePathTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    String cookie = app.get().cookiePath("cookie");
    Assert.assertEquals(cookie, "/");
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) Test(org.testng.annotations.Test)

Example 49 with App

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

the class ActionGetIT method getTableRowNotTableTest.

@Test(groups = { "integration", "actions", "get" }, description = "An integration test to check the getTableRow method")
public void getTableRowNotTableTest() {
    // use this object to manipulate the app
    App app = this.apps.get();
    // perform some actions
    List<WebElement> row = app.newElement(Locator.ID, "input_box", 0).get().tableRow(1);
    Assert.assertNull(row);
    // verify no issues
    finish();
}
Also used : App(com.coveros.selenified.application.App) WebElement(org.openqa.selenium.WebElement) Test(org.testng.annotations.Test)

Example 50 with App

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

the class ActionGetIT method getSelectedValueTest.

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