@applitools/driver 1.10.1 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/driver.js +5 -3
- package/package.json +1 -1
package/dist/driver.js
CHANGED
|
@@ -120,8 +120,8 @@ class Driver {
|
|
|
120
120
|
return (_b = (!this.isWebView && ((_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isNative))) !== null && _b !== void 0 ? _b : false;
|
|
121
121
|
}
|
|
122
122
|
get isWebView() {
|
|
123
|
-
var _a, _b;
|
|
124
|
-
return (
|
|
123
|
+
var _a, _b, _c;
|
|
124
|
+
return (_c = (((_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isNative) && ((_b = this._driverInfo) === null || _b === void 0 ? void 0 : _b.isWebView))) !== null && _c !== void 0 ? _c : false;
|
|
125
125
|
}
|
|
126
126
|
get isWeb() {
|
|
127
127
|
return this.isWebView || !this.isNative;
|
|
@@ -347,13 +347,15 @@ class Driver {
|
|
|
347
347
|
return;
|
|
348
348
|
const [origin, next] = await this.getWorlds();
|
|
349
349
|
const currentWorld = await ((_b = (_a = this._spec).getCurrentWorld) === null || _b === void 0 ? void 0 : _b.call(_a, this.target));
|
|
350
|
-
|
|
350
|
+
const result = {
|
|
351
351
|
id: currentWorld,
|
|
352
352
|
home: origin,
|
|
353
353
|
next,
|
|
354
354
|
isNative: currentWorld === origin,
|
|
355
355
|
isWebView: currentWorld !== origin,
|
|
356
356
|
};
|
|
357
|
+
this._logger.log('current world', result);
|
|
358
|
+
return result;
|
|
357
359
|
}
|
|
358
360
|
// end world
|
|
359
361
|
async refreshContexts() {
|