本文整理汇总了TypeScript中nativescript-dev-appium.AppiumDriver.backgroundApp方法的典型用法代码示例。如果您正苦于以下问题:TypeScript AppiumDriver.backgroundApp方法的具体用法?TypeScript AppiumDriver.backgroundApp怎么用?TypeScript AppiumDriver.backgroundApp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nativescript-dev-appium.AppiumDriver
的用法示例。
在下文中一共展示了AppiumDriver.backgroundApp方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it("toggle teams tab", async () => {
await screen.toggleTeamsTab();
if (appSuspendResume) {
await driver.backgroundApp(suspendTime);
await driver.waitForElement(teamOne.name); // wait for team
}
});
示例2: it
it("loaded player details with slide", async () => {
await shared.testPlayerNavigated(playerTwo, screen);
if (appSuspendResume) {
await driver.backgroundApp(suspendTime);
await driver.waitForElement(playerTwo.name); // wait for player
}
});
示例3: it
it("navigate to some page with slide transition", async () => {
shared.testSomePageNavigatedSlide(screen);
if (appSuspendResume) {
await driver.backgroundApp(suspendTime);
await driver.waitForElement(somePage); // wait for some page
}
});
示例4: testSecondItemBackground
export async function testSecondItemBackground(driver: AppiumDriver, screen: Screen) {
await screen.navigateToSecondItem();
await screen.loadedSecondItem();
await driver.backgroundApp(time);
await screen.loadedSecondItem();
await screen.navigateToFirstItem();
await screen.loadedFirstItem();
}
示例5: testNestedModalPageBackground
export async function testNestedModalPageBackground(driver: AppiumDriver, screen: Screen, isInFrame: boolean = true) {
await screen.showNestedModalPage();
await screen.loadedNestedModalPage();
await driver.backgroundApp(time);
await screen.loadedNestedModalPage();
await screen.closeModalNested();
isInFrame ? await screen.loadedModalFrame() : await screen.loadedModalPage();
}