Search in sources :

Example 1 with HomePage

use of testsappng.Screens.HomePage in project functional-tests by NativeScript.

the class PageRouterTests method beforeClassPageRouterTests.

@BeforeClass(alwaysRun = true)
public void beforeClassPageRouterTests() throws Exception {
    this.homePage = new HomePage("First", this.context);
    this.firstComponentPage = new FirstComponentPage(context);
    this.secondComponentPage = new SecondComponentPage(this.context);
}
Also used : SecondComponentPage(testsappng.Screens.SecondComponentPage) HomePage(testsappng.Screens.HomePage) FirstComponentPage(testsappng.Screens.FirstComponentPage) BeforeClass(org.testng.annotations.BeforeClass)

Example 2 with HomePage

use of testsappng.Screens.HomePage in project functional-tests by NativeScript.

the class RouterTests method beforeRouterTestsClass.

@BeforeClass(alwaysRun = true)
public void beforeRouterTestsClass() throws Exception {
    this.homePage = new HomePage("Router", this.context);
    this.firstComponentPage = new FirstComponentPage(this.homePage.context, this.homePage.context.navigationManager);
}
Also used : HomePage(testsappng.Screens.HomePage) FirstComponentPage(testsappng.Screens.FirstComponentPage) BeforeClass(org.testng.annotations.BeforeClass)

Example 3 with HomePage

use of testsappng.Screens.HomePage in project functional-tests by NativeScript.

the class ListPickerTest method beforeListPickerTestClass.

@BeforeClass(alwaysRun = true)
public void beforeListPickerTestClass() throws Exception {
    this.homePage = new HomePage(ListPickerTest.LIST_PICKER_EXAMPLE, this.context);
    UIElement listPicker = this.context.wait.waitForVisible(this.locators.byText(ListPickerTest.LIST_PICKER_EXAMPLE), 3, true);
    this.homePage.navigateTo(listPicker, "list-picker-test-page");
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement) HomePage(testsappng.Screens.HomePage) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

BeforeClass (org.testng.annotations.BeforeClass)3 HomePage (testsappng.Screens.HomePage)3 FirstComponentPage (testsappng.Screens.FirstComponentPage)2 UIElement (functional.tests.core.mobile.element.UIElement)1 SecondComponentPage (testsappng.Screens.SecondComponentPage)1