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);
}
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);
}
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);
}
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.");
}
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.");
}
}
Aggregations