Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leadfoot

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leadfoot - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

7

Element.js

@@ -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 @@ }

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc