Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const setupNewIOSDriver = async (caps) => {
const iosArgs = {
javascriptEnabled: true,
};
const iosdriver = new XCUITestDriver(iosArgs);
const capsCopy = Object.assign({}, caps, { newCommandTimeout: 0 });
await iosdriver.createSession(capsCopy);
return iosdriver;
};