@applitools/driver 1.11.33 → 1.11.34
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 -7
- package/package.json +1 -1
package/dist/driver.js
CHANGED
|
@@ -183,19 +183,17 @@ class Driver {
|
|
|
183
183
|
await ((_b = (_a = this._spec).getCapabilities) === null || _b === void 0 ? void 0 : _b.call(_a, this.target));
|
|
184
184
|
const capabilities = await ((_d = (_c = this._spec).getCapabilities) === null || _d === void 0 ? void 0 : _d.call(_c, this.target));
|
|
185
185
|
this._logger.log('Driver capabilities', capabilities);
|
|
186
|
-
const capabilitiesInfo = capabilities
|
|
186
|
+
const capabilitiesInfo = capabilities && (0, capabilities_1.parseCapabilities)(capabilities);
|
|
187
187
|
const driverInfo = await ((_f = (_e = this._spec).getDriverInfo) === null || _f === void 0 ? void 0 : _f.call(_e, this.target));
|
|
188
188
|
this._driverInfo = { ...capabilitiesInfo, ...driverInfo };
|
|
189
189
|
(_g = (_19 = this._driverInfo).remoteHostname) !== null && _g !== void 0 ? _g : (_19.remoteHostname = (_k = (_j = (_h = this._spec).extractHostName) === null || _j === void 0 ? void 0 : _j.call(_h, this.target)) !== null && _k !== void 0 ? _k : undefined);
|
|
190
190
|
if (this.isMobile) {
|
|
191
191
|
this._driverInfo.orientation =
|
|
192
192
|
(_l = (await this.getOrientation().catch(() => undefined))) !== null && _l !== void 0 ? _l : this._driverInfo.orientation;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
this._driverInfo.isWebView = world !== home;
|
|
198
|
-
}
|
|
193
|
+
const world = await this.getCurrentWorld();
|
|
194
|
+
if (world) {
|
|
195
|
+
const [home] = (await this.getWorlds());
|
|
196
|
+
this._driverInfo.isWebView = world !== home;
|
|
199
197
|
}
|
|
200
198
|
}
|
|
201
199
|
if (this.isWeb) {
|