New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

marionette-helper

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marionette-helper - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

test/closest_test.js

19

index.js

@@ -0,4 +1,4 @@

'use strict';
var Marionette = require('marionette-client');
/**

@@ -142,3 +142,14 @@ * @param {Marionette.Client} client Marionette client to use.

client.waitFor(el.displayed.bind(el));
client.waitFor(function() {
try {
return el.displayed.call(el);
} catch (err) {
if (err && err.type === 'ElementNotAccessibleError') {
// the element is not yet accessible
return false;
}
// the client threw an unexpected error, rethrow it
throw err;
}
});
return el;

@@ -186,2 +197,6 @@ },

} catch (err) {
if (err && err.type === 'ElementNotAccessibleError') {
// element is still accessible to Accessibility API
return false;
}
if (err && err.type === 'StaleElementReference') {

@@ -188,0 +203,0 @@ // the element was removed from the dom, we are done

45

package.json

@@ -1,44 +0,1 @@

{
"name": "marionette-helper",
"version": "0.3.1",
"author": {
"name": "The Gaia Team",
"email": "dev-gaia@lists.mozilla.org"
},
"peerDependencies": {
"marionette-client": ">=1.0.0"
},
"dependencies": {
"marionette-apps": "~0.3.3"
},
"devDependencies": {
"marionette-host-environment": "0.3.3",
"marionette-js-runner": "~0.0.1",
"mozilla-download": "~0.2.1",
"mocha": "1.12.0",
"sinon": "1.7.2"
},
"keywords": [
"firefox",
"firefox os",
"gecko",
"marionette",
"mozilla",
"test"
],
"scripts": {
"test": "make"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mozilla-b2g/marionette-helper.git"
}
}
{"name":"marionette-helper","version":"0.3.2","author":{"name":"The Gaia Team","email":"dev-gaia@lists.mozilla.org"},"dependencies":{"marionette-apps":"0.3.13"}}

@@ -5,4 +5,1 @@ marionette-helper

A collection of useful methods to augment the marionette js client when using the TcpSync driver.
[![Build
Status](https://travis-ci.org/mozilla-b2g/marionette-helper.png?branch=master)](https://travis-ci.org/mozilla-b2g/marionette-helper)
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