Search in sources :

Example 1 with HomePageExtended

use of uitests.Screens.HomePageExtended in project functional-tests by NativeScript.

the class HtmlViewTests method htmlView_01.

@Test(groups = { "android", "ios" })
public void htmlView_01() throws Exception {
    this.homePage = new HomePageExtended("htmlview", this.context);
    UIElement el = this.find.byTextContains("one");
    String htmlContent = el.getText();
    Assert.assertTrue(htmlContent.contains("one"));
    Assert.assertTrue(htmlContent.contains("two"));
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement) HomePageExtended(uitests.Screens.HomePageExtended) Test(org.testng.annotations.Test) MobileTest(functional.tests.core.mobile.basetest.MobileTest)

Example 2 with HomePageExtended

use of uitests.Screens.HomePageExtended in project functional-tests by NativeScript.

the class TabViewBaseTest method beforeTabViewBaseTestClass.

@BeforeClass(alwaysRun = true)
public void beforeTabViewBaseTestClass() {
    String tabView = "tab-view";
    if (this.settings.platform == PlatformType.Android && this.settings.platformVersion >= 7) {
        tabView = "TAB-VIEW";
    }
    this.homePageExtended = new HomePageExtended(tabView, this.context);
}
Also used : HomePageExtended(uitests.Screens.HomePageExtended) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

HomePageExtended (uitests.Screens.HomePageExtended)2 MobileTest (functional.tests.core.mobile.basetest.MobileTest)1 UIElement (functional.tests.core.mobile.element.UIElement)1 BeforeClass (org.testng.annotations.BeforeClass)1 Test (org.testng.annotations.Test)1