Comparing version 1.5.1 to 1.5.2
{ | ||
"name": "leadfoot", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Leadfoot. A JavaScript client library that brings cross-platform consistency to the Selenium WebDriver API.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -313,3 +313,11 @@ /* global document:false */ | ||
if (fixSessionCapabilities) { | ||
return self._fillCapabilities(session); | ||
return self._fillCapabilities(session).catch(function (error) { | ||
// The session was started on the server, but we did not resolve the Promise yet. If a failure | ||
// occurs during capabilities filling, we should quit the session on the server too since the | ||
// caller will not be aware that it ever got that far and will have no access to the session to | ||
// quit itself. | ||
return session.quit().finally(function () { | ||
throw error; | ||
}); | ||
}); | ||
} | ||
@@ -316,0 +324,0 @@ else { |
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
203350
5220