本文整理匯總了TypeScript中nativescript-dev-appium.AppiumDriver.setDontKeepActivities方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript AppiumDriver.setDontKeepActivities方法的具體用法?TypeScript AppiumDriver.setDontKeepActivities怎麽用?TypeScript AppiumDriver.setDontKeepActivities使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類nativescript-dev-appium.AppiumDriver
的用法示例。
在下文中一共展示了AppiumDriver.setDontKeepActivities方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: before
before(async () => {
driver = await createDriver();
screen = new Screen(driver);
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
});
示例2: after
after(async () => {
if (dontKeepActivities) {
await driver.setDontKeepActivities(false);
}
await driver.quit();
console.log("Quit driver!");
});
示例3: before
before(async () => {
driver = await createDriver();
screen = new Screen(driver);
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
driver.defaultWaitTime = driverDefaultWaitTime;
});
示例4: before
before(async () => {
logWarn(`====== ${rootType} ========`);
driver = await createDriver();
screen = new Screen(driver);
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
driver.defaultWaitTime = driverDefaultWaitTime;
});
示例5: before
before(async () => {
driver = await createDriver();
screen = new Screen(driver);
logWarn("====== layout-root ========")
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
driver.defaultWaitTime = driverDefaultWaitTime;
});
示例6: before
before("start server", async () => {
await startServer();
driver = await createDriver();
await driver.setDontKeepActivities(true);
});
示例7: after
after("stop server", async () => {
await driver.setDontKeepActivities(false);
await driver.quit();
await stopServer();
});