本文整理汇总了TypeScript中nativescript-dev-appium.createDriver函数的典型用法代码示例。如果您正苦于以下问题:TypeScript createDriver函数的具体用法?TypeScript createDriver怎么用?TypeScript createDriver使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createDriver函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: before
before(async () => {
driver = await createDriver();
driver.defaultWaitTime = driverDefaultWaitTime;
screen = new Screen(driver);
const btnShowNestedModalFrame = await driver.findElementByText(exampleAndroidBackBtnEvents);
await btnShowNestedModalFrame.click();
});
示例2: before
before(async () => {
driver = await createDriver();
screen = new Screen(driver);
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
});
示例3: before
before(async () => {
driver = await createDriver();
await driver.driver.resetApp();
if (driver.isIOS && driver.nsCapabilities.device.name.toLowerCase().includes("x")) {
imagePostFix = "-lazy";
}
});
示例4: before
before(async () => {
driver = await createDriver();
screen = new Screen(driver);
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
driver.defaultWaitTime = driverDefaultWaitTime;
});
示例5: before
before(async () => {
driver = await createDriver();
driver.defaultWaitTime = 15000;
let dir = "mochawesome-report";
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
rimraf('mochawesome-report/*', function () { });
});
示例6: before
before(async () => {
logWarn(`====== ${rootType} ========`);
driver = await createDriver();
screen = new Screen(driver);
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
driver.defaultWaitTime = driverDefaultWaitTime;
});
示例7: before
before(async () => {
driver = await createDriver();
screen = new Screen(driver);
logWarn("====== layout-root ========")
if (dontKeepActivities) {
await driver.setDontKeepActivities(true);
}
driver.defaultWaitTime = driverDefaultWaitTime;
});
示例8: before
before(async function () {
this.timeout(QUEUE_WAIT_TIME);
driver = await createDriver();
driver.defaultWaitTime = 15000;
let dir = "mochawesome-report";
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
rimraf('mochawesome-report/*', function () { });
});
示例9: before
before(async () => {
driver = await createDriver();
await driver.driver.resetApp();
});
示例10: before
before(async () => {
driver = await createDriver();
});