@applitools/driver 1.4.8 → 1.4.9
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/CHANGELOG.md +4 -0
- package/dist/driver.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/driver.js
CHANGED
|
@@ -484,7 +484,13 @@ class Driver {
|
|
|
484
484
|
var _a, _b, _c;
|
|
485
485
|
if (this.isNative || !this.features.allCookies)
|
|
486
486
|
return [];
|
|
487
|
-
|
|
487
|
+
try {
|
|
488
|
+
return (_c = (await ((_b = (_a = this._spec).getCookies) === null || _b === void 0 ? void 0 : _b.call(_a, this.target)))) !== null && _c !== void 0 ? _c : [];
|
|
489
|
+
}
|
|
490
|
+
catch (error) {
|
|
491
|
+
this._driverInfo.features.allCookies = false;
|
|
492
|
+
throw error;
|
|
493
|
+
}
|
|
488
494
|
}
|
|
489
495
|
async getTitle() {
|
|
490
496
|
if (this.isNative)
|