Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "leadfoot", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Leadfoot. A JavaScript client library that brings cross-platform consistency to the Selenium WebDriver API.", | ||
@@ -13,6 +13,6 @@ "repository": { | ||
"dependencies": { | ||
"dojo": "2.0.0-alpha4" | ||
"dojo": "2.0.0-alpha.5" | ||
}, | ||
"devDependencies": { | ||
"intern": "1.7.0" | ||
"intern": "2.2.2" | ||
}, | ||
@@ -19,0 +19,0 @@ "bugs": "https://github.com/theintern/leadfoot/issues", |
@@ -7,2 +7,3 @@ /* global document:false */ | ||
var keys = require('./keys'); | ||
var lang = require('dojo/lang'); | ||
var Promise = require('dojo/Promise'); | ||
@@ -291,2 +292,12 @@ var request = require('dojo/request'); | ||
var self = this; | ||
var fixSessionCapabilities = desiredCapabilities.fixSessionCapabilities !== false && | ||
self.fixSessionCapabilities; | ||
// Don’t send `fixSessionCapabilities` to the server | ||
if ('fixSessionCapabilities' in desiredCapabilities) { | ||
desiredCapabilities = lang.mixin({}, desiredCapabilities); | ||
desiredCapabilities.fixSessionCapabilities = undefined; | ||
} | ||
return this._post('session', { | ||
@@ -297,3 +308,3 @@ desiredCapabilities: desiredCapabilities, | ||
var session = new self.sessionConstructor(response.sessionId, self, response.value); | ||
if (self.fixSessionCapabilities) { | ||
if (fixSessionCapabilities) { | ||
return self._fillCapabilities(session); | ||
@@ -300,0 +311,0 @@ } |
@@ -174,2 +174,6 @@ /** | ||
* | ||
* @property {boolean} fixSessionCapabilities | ||
* Set this desired capability to false to disable Leadfoot’s feature detection code. This will speed up startup but | ||
* will disable most Leadfoot fixes, so some environments may stop working correctly. | ||
* | ||
* @property {(boolean|string[])} fixedLogTypes | ||
@@ -176,0 +180,0 @@ * Environments with this capability break when the `getLogTypes` method is called. The list of log types provided here |
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
198006
5143
+ Addeddojo@2.0.0-alpha.5(transitive)
- Removeddojo@2.0.0-alpha4(transitive)
Updateddojo@2.0.0-alpha.5