@applitools/driver 1.10.0 → 1.10.2
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
|
@@ -336,7 +336,7 @@ class Driver {
|
|
|
336
336
|
return worlds;
|
|
337
337
|
}
|
|
338
338
|
this._logger.log(`just one world found, retrying to see if there are others (attempt #${attempt})`);
|
|
339
|
-
|
|
339
|
+
await this.getWorlds(attempt + 1);
|
|
340
340
|
}
|
|
341
341
|
this._logger.log(`worlds found - ${worlds}`);
|
|
342
342
|
return worlds;
|
|
@@ -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
|
-
isWebView: currentWorld !== origin,
|
|
355
|
+
isWebView: currentWorld !== origin && currentWorld !== 'CHROMIUM',
|
|
356
356
|
};
|
|
357
|
+
this._logger.log('current world', result);
|
|
358
|
+
return result;
|
|
357
359
|
}
|
|
358
360
|
// end world
|
|
359
361
|
async refreshContexts() {
|