當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript AppiumDriver.setDontKeepActivities方法代碼示例

本文整理匯總了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);
     }
 });
開發者ID:m-abs,項目名稱:NativeScript,代碼行數:7,代碼來源:issues.e2e.spec.ts

示例2: after

 after(async () => {
     if (dontKeepActivities) {
         await driver.setDontKeepActivities(false);
     }
     await driver.quit();
     console.log("Quit driver!");
 });
開發者ID:NathanWalker,項目名稱:NativeScript,代碼行數:7,代碼來源:frame-tab-root.e2e-spec.ts

示例3: before

    before(async () => {
        driver = await createDriver();
        screen = new Screen(driver);
        if (dontKeepActivities) {
            await driver.setDontKeepActivities(true);
        }

        driver.defaultWaitTime = driverDefaultWaitTime;
    });
開發者ID:NathanWalker,項目名稱:NativeScript,代碼行數:9,代碼來源:frame-tab-root.e2e-spec.ts

示例4: before

    before(async () => {
        logWarn(`====== ${rootType} ========`);
        driver = await createDriver();
        screen = new Screen(driver);
        if (dontKeepActivities) {
            await driver.setDontKeepActivities(true);
        }

        driver.defaultWaitTime = driverDefaultWaitTime;
    });
開發者ID:m-abs,項目名稱:NativeScript,代碼行數:10,代碼來源:frame-tab-root.e2e-spec.ts

示例5: before

    before(async () => {
        driver = await createDriver();
        screen = new Screen(driver);
        logWarn("====== layout-root ========")
        if (dontKeepActivities) {
            await driver.setDontKeepActivities(true);
        }

        driver.defaultWaitTime = driverDefaultWaitTime;
    });
開發者ID:m-abs,項目名稱:NativeScript,代碼行數:10,代碼來源:layout-root.e2e-spec.ts

示例6: before

before("start server", async () => {
    await startServer();
    driver = await createDriver();
    await driver.setDontKeepActivities(true);
});
開發者ID:NathanWalker,項目名稱:NativeScript,代碼行數:5,代碼來源:setup.ts

示例7: after

after("stop server", async () => {
    await driver.setDontKeepActivities(false);
    await driver.quit();
    await stopServer();
});
開發者ID:NathanWalker,項目名稱:NativeScript,代碼行數:5,代碼來源:setup.ts


注:本文中的nativescript-dev-appium.AppiumDriver.setDontKeepActivities方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。