Comparing version 1.6.0 to 1.6.1
@@ -200,3 +200,8 @@ /* global window:false */ | ||
if (fs.existsSync(filename)) { | ||
return this.session._uploadFile(filename).then(this.type.bind(this)); | ||
var self = this; | ||
return this.session._uploadFile(filename).then(function(uploadedFilename) { | ||
return self._post('value', { | ||
value: [ uploadedFilename ] | ||
}).then(noop); | ||
}); | ||
} | ||
@@ -203,0 +208,0 @@ } |
{ | ||
"name": "leadfoot", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Leadfoot. A JavaScript client library that brings cross-platform consistency to the Selenium WebDriver API.", | ||
@@ -11,7 +11,7 @@ "repository": { | ||
"dependencies": { | ||
"adm-zip": "^0.4.3", | ||
"dojo": "2.0.0-alpha.6" | ||
"dojo": "2.0.0-alpha.6", | ||
"jszip": "2.5.0" | ||
}, | ||
"devDependencies": { | ||
"intern": "3.0.0-rc.2" | ||
"intern": "3.0.3" | ||
}, | ||
@@ -18,0 +18,0 @@ "bugs": "https://github.com/theintern/leadfoot/issues", |
@@ -464,5 +464,10 @@ /* global document:false */ | ||
if (!('touchEnabled' in capabilities)) { | ||
testedCapabilities.touchEnabled = session.longTap() | ||
testedCapabilities.touchEnabled = session.doubleTap() | ||
.then(supported, maybeSupported); | ||
} | ||
// ChromeDriver 2.19 claims that it supports touch but it does not implement all of the touch endpoints | ||
// from JsonWireProtocol | ||
else if (capabilities.browserName === 'chrome') { | ||
testedCapabilities.touchEnabled = false; | ||
} | ||
@@ -706,2 +711,12 @@ if (!('dynamicViewport' in capabilities)) { | ||
if (capabilities.mouseEnabled) { | ||
// At least ChromeDriver 2.12 through 2.19 will throw an error if mouse movement relative to the <html> | ||
// element is attempted | ||
testedCapabilities.brokenHtmlMouseMove = function () { | ||
return get('<!DOCTYPE html><html></html>').then(function () { | ||
return session.findByTagName('html').then(function (element) { | ||
return session.moveMouseTo(element, 0, 0); | ||
}); | ||
}).then(works, broken); | ||
}; | ||
// At least ChromeDriver 2.9.248307 does not correctly emit the entire sequence of events that would | ||
@@ -840,3 +855,13 @@ // normally occur during a double-click | ||
getSessions: function () { | ||
return this._get('sessions').then(returnValue); | ||
return this._get('sessions').then(returnValue).then(function (sessions) { | ||
// At least ChromeDriver 2.19 uses the wrong keys | ||
// https://code.google.com/p/chromedriver/issues/detail?id=1229 | ||
sessions.forEach(function (session) { | ||
if (session.sessionId && !session.id) { | ||
session.id = session.sessionId; | ||
} | ||
}); | ||
return sessions; | ||
}); | ||
}, | ||
@@ -843,0 +868,0 @@ |
@@ -120,2 +120,5 @@ /** | ||
* | ||
* @property {boolean} brokenHtmlMouseMove | ||
* Environments with this capability throw an error when using `moveMouseTo` on the root document (`<html>`) element. | ||
* | ||
* @property {boolean} brokenHtmlTagName | ||
@@ -122,0 +125,0 @@ * Environments with this capability return HTML tag names with the incorrect case. This issue is automatically |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
218715
5566
1
2
+ Addedjszip@2.5.0
+ Addedjszip@2.5.0(transitive)
+ Addedpako@0.2.9(transitive)
- Removedadm-zip@^0.4.3
- Removedadm-zip@0.4.16(transitive)