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