本文整理匯總了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();
}