Search in sources :

Example 11 with UIElement

use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.

the class NavOptionsPage method pageTransitions.

public void pageTransitions() {
    Wait.sleep(2000);
    UIElement element = this.getPageTransitionsBtn();
    this.log.info("pageTransitions isDisplayed " + element.isDisplayed());
    this.navigationManager.setCurrentPage(pageTransitions);
    element.tap();
    this.log.info("Click on " + pageTransitions);
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement)

Example 12 with UIElement

use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.

the class HomePage method tabButton.

public void tabButton(String name) {
    this.find.byText(name).tap();
    UIElement searchPageTitle = this.wait.waitForVisible(this.locators.findByTextLocator("Search", true));
    Assert.assertNotNull(searchPageTitle);
    this.log.info("Page title pressed: " + name);
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement)

Example 13 with UIElement

use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.

the class ActionBarFirstPage method navigateToSecondCoponentPage.

public SecondComponentPage navigateToSecondCoponentPage() {
    UIElement action = this.wait.waitForVisible(this.locators.byText("action"));
    this.navigateTo(action);
    return new SecondComponentPage(this.context);
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement)

Example 14 with UIElement

use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.

the class HomePage method openDrawer.

public void openDrawer() {
    this.drawerIcon().tap();
    UIElement userName = this.wait.waitForVisible(this.locators.findByTextLocator("User Name", true));
    UIElement userEmail = this.wait.waitForVisible(this.locators.findByTextLocator("username@mail.com", true));
    Assert.assertNotNull(userName);
    Assert.assertNotNull(userEmail);
    this.log.info("Drawer Navigation opened.");
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement)

Example 15 with UIElement

use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.

the class HomePage method testsAppNgHomeNavigateToPage.

public void testsAppNgHomeNavigateToPage(String element) {
    UIElement btnElement = this.wait.waitForVisible(this.locators.byText(element));
    boolean hasNavigated = this.navigateTo(btnElement);
    if (hasNavigated) {
        this.log.info("UITests app " + element + " page homePageLoaded.");
    } else {
        this.log.info("Failed to navigate to " + element + " page.");
    }
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement)

Aggregations

UIElement (functional.tests.core.mobile.element.UIElement)79 Test (org.testng.annotations.Test)37 MobileTest (functional.tests.core.mobile.basetest.MobileTest)15 SdkBaseTest (sdkexamples.SdkBaseTest)8 By (org.openqa.selenium.By)3 AnimationsBaseTest (animations.Tests.AnimationsBaseTest)1 ScrollableListObject (functional.tests.core.extensions.ScrollableListObject)1 UIRectangle (functional.tests.core.mobile.element.UIRectangle)1 Point (org.openqa.selenium.Point)1 AfterMethod (org.testng.annotations.AfterMethod)1 BeforeClass (org.testng.annotations.BeforeClass)1 HomePage (templates.tabnavigation.pages.HomePage)1 HomePage (testsappng.Screens.HomePage)1 HomePageExtended (uitests.Screens.HomePageExtended)1