use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.
the class MainPageTest method groceries_01_addItem.
@Test(groups = { "android", "ios" })
public void groceries_01_addItem() throws Exception {
UIElement element = this.mainPage.insertItem(testText);
this.assertImagesResults();
}
use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.
the class SdkSliderTests method sdkSliderTest.
@Test(dataProvider = "example")
public void sdkSliderTest(String example) throws Exception {
UIElement btn = this.find.byTextContains(example);
this.mainPage.navigateTo(btn);
}
use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.
the class DialogsPage method tapNoBtn.
public void tapNoBtn() {
UIElement el = this.find.byText("No");
if (this.settings.platform == PlatformType.iOS && this.settings.platformVersion >= 10) {
el.tap();
} else {
el.click();
}
this.log.info("Choose 'No' option.");
}
use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.
the class DialogsPage method tapLoginBtn.
public void tapLoginBtn() {
UIElement el = this.find.byText("login");
if (this.settings.platform == PlatformType.iOS && this.settings.platformVersion >= 10) {
el.tap();
} else {
el.click();
}
this.log.info("Tap on 'login' button.");
}
use of functional.tests.core.mobile.element.UIElement in project functional-tests by NativeScript.
the class SdkWebViewTests method sdkWebViewTest.
@Test(dataProvider = "example")
public void sdkWebViewTest(String example) {
this.mainPage.navigateTo(example);
if (example.equalsIgnoreCase(pageViewViewUsage)) {
if (this.settings.platform == PlatformType.Android && this.settings.platformVersion >= 5) {
UIElement element = this.find.byText("Get Started");
Assert.notNull(element, "WebView with {N} docs not loaded.");
} else if (this.settings.platform == PlatformType.iOS) {
UIElement element = this.find.byText("NativeScript Documentation");
Assert.notNull(element, "WebView with {N} docs not loaded.");
}
} else if (example.equalsIgnoreCase(pageWebViewTips)) {
if (this.settings.platformVersion >= 5) {
UIElement element = this.find.byText("My First Heading");
Assert.notNull(element, "Tips & Tricks web page not loaded.");
}
}
}
Aggregations