Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deviceId: this.udid
});
yield this.startRealDevice();
} else {
this.device = new Simulator({
deviceId: this.udid
});
yield this.startSimulator();
}
if (this.xctest) {
this.xctest.stop();
}
yield this.device.uninstall(XCTestWD.XCTestWD.BUNDLE_ID);
const desCaps = _.validateAndFilterDesiredCaps(_.merge({
bundleId: this.bundleId
}, this.args));
if (deviceInfo.isRealIOS) {
delete desCaps.app;
}
logger.debug(JSON.stringify(desCaps, null, '\t'));
this.initXCTest();
if (!this.isSafari) {
this.proxy = this.xctest;
}