Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'id',
'name',
'class name',
'-ios predicate string',
'-ios class chain',
'accessibility id'
];
this.webLocatorStrategies = [
'link text',
'css selector',
'tag name',
'link text',
'partial link text'
];
this.resetIos();
this.settings = new DeviceSettings(DEFAULT_SETTINGS, this.onSettingsUpdate.bind(this));
this.logs = {};
// memoize functions here, so that they are done on a per-instance basis
for (const fn of MEMOIZED_FUNCTIONS) {
this[fn] = _.memoize(this[fn]);
}
}
super(opts, shouldValidateCaps);
this.locatorStrategies = [
'xpath',
'id',
'class name',
'accessibility id',
'-android uiautomator'
];
this.desiredCapConstraints = desiredCapConstraints;
this.uiautomator2 = null;
this.jwpProxyActive = false;
this.defaultIME = null;
this.jwpProxyAvoid = NO_PROXY;
this.apkStrings = {}; // map of language -> strings obj
this.settings = new DeviceSettings({ignoreUnimportantViews: false, allowInvisibleElements: false},
this.onSettingsUpdate.bind(this));
// handle webview mechanics from AndroidDriver
this.chromedriver = null;
this.sessionChromedrivers = {};
// memoize functions here, so that they are done on a per-instance basis
for (const fn of MEMOIZED_FUNCTIONS) {
this[fn] = _.memoize(this[fn]);
}
}
constructor (opts = {}, shouldValidateCaps = true) {
super(opts, shouldValidateCaps);
this.locatorStrategies = [
'xpath',
'id',
'class name',
'accessibility id',
'-android uiautomator'
];
this.desiredCapConstraints = desiredConstraints;
this.sessionChromedrivers = {};
this.jwpProxyActive = false;
this.jwpProxyAvoid = _.clone(NO_PROXY);
this.settings = new DeviceSettings({ignoreUnimportantViews: false},
this.onSettingsUpdate.bind(this));
this.chromedriver = null;
this.apkStrings = {};
this.unlocker = helpers.unlocker;
for (let [cmd, fn] of _.toPairs(commands)) {
AndroidDriver.prototype[cmd] = fn;
}
// needs to be after the line which assigns commands to AndroidDriver.prototype, so that `this.defaultContextName` is defined.
this.curContext = this.defaultContextName();
}
constructor (opts = {}, shouldValidateCaps = true) {
super(opts, shouldValidateCaps);
this.locatorStrategies = [
'id',
'accessibility id',
'class name',
'name'
];
this.desiredCapConstraints = desiredConstraints;
this.jwpProxyActive = false;
this.jwpProxyAvoid = _.clone(NO_PROXY);
this.settings = new DeviceSettings({ignoreUnimportantViews: false});
this.bootstrapPort = BOOTSTRAP_PORT;
for (let [cmd, fn] of _.toPairs(commands)) {
TizenDriver.prototype[cmd] = fn;
}
}
this.windowHandleCache = [];
this.webElementIds = [];
this.implicitWaitMs = 0;
this.asynclibWaitMs = 0;
this.pageLoadMs = 6000;
this.asynclibResponseCb = null;
this.returnedFromExecuteAtom = {};
this.executedAtomsCounter = 0;
this.curCoords = null;
this.curWebCoords = null;
this.landscapeWebCoordsOffset = 0;
this.keepAppToRetainPrefs = false;
this.ready = false;
this.asyncWaitMs = 0;
this.settings = new DeviceSettings({}, _.noop);
this.locatorStrategies = [
'xpath',
'id',
'class name',
'-ios uiautomation',
'accessibility id'
];
this.webLocatorStrategies = [
'link text',
'css selector',
'tag name',
'partial link text'
];
}