mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
22 lines
527 B
TypeScript
22 lines
527 B
TypeScript
import { AppiumDriver, logInfo } from "nativescript-dev-appium";
|
|
|
|
import { PageObjectBaseModel } from "../../../page-object-base-model";
|
|
|
|
export class StylesPage extends PageObjectBaseModel {
|
|
|
|
private readonly app = "app";
|
|
|
|
constructor(_driver: AppiumDriver) {
|
|
super(_driver, ["css", "styles"]);
|
|
}
|
|
|
|
async btnApp() {
|
|
return this._driver.waitForElement(this.app);
|
|
}
|
|
|
|
async tapAppBtn() {
|
|
await (await this.btnApp()).click();
|
|
logInfo(`Tap on '${this.app}' button.`);
|
|
}
|
|
}
|