@applitools/driver
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -6,2 +6,6 @@ # Change Log | ||
## 1.4.9 - 2022/1/12 | ||
- handle case with `spec.getCookies` throws an error when trying to get cookies of the browser | ||
## 1.4.8 - 2022/1/5 | ||
@@ -8,0 +12,0 @@ |
@@ -487,3 +487,9 @@ "use strict"; | ||
return []; | ||
return (_c = (_b = (_a = this._spec).getCookies) === null || _b === void 0 ? void 0 : _b.call(_a, this.target)) !== null && _c !== void 0 ? _c : []; | ||
try { | ||
return (_c = (await ((_b = (_a = this._spec).getCookies) === null || _b === void 0 ? void 0 : _b.call(_a, this.target)))) !== null && _c !== void 0 ? _c : []; | ||
} | ||
catch (error) { | ||
this._driverInfo.features.allCookies = false; | ||
throw error; | ||
} | ||
} | ||
@@ -490,0 +496,0 @@ async getTitle() { |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155230
2843