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

marionette-client

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marionette-client - npm Package Compare versions

Comparing version 0.13.2 to 0.13.3

33

lib/marionette/element.js

@@ -6,18 +6,2 @@ /**

/**
* Default for tap's x offset.
*
* @type Number
* @private
*/
var TAP_DEFAULT_X = 0;
/**
* Default for tap's y offset.
*
* @type Number
* @private
*/
var TAP_DEFAULT_Y = 0;
/**
* Creates an element reference

@@ -81,3 +65,3 @@ * based on an id and a client instance.

findElement: function findElement(query, method, callback) {
var result = this.client.findElement(query, method, this.id, callback);
var result = this.client.findElement(query, method, this.id, callback);

@@ -215,6 +199,7 @@ if (this.client.isSync) {

* Taps an element at given x and y coordinates.
* If no offsets are given, it will be tapped at the center of the element.
*
* @method tap
* @param {Number} [x=0] offset for the tap.
* @param {Number} [y=0] offset for the tap.
* @param {Number} [x] offset for the tap.
* @param {Number} [y] offset for the tap.
* @param {Function} [callback] [Error err]

@@ -224,7 +209,11 @@ */

var cmd = {
type: 'singleTap',
x: x || TAP_DEFAULT_X,
y: y || TAP_DEFAULT_Y
type: 'singleTap'
};
if (typeof(x) === 'number' &&
typeof(y) === 'number') {
cmd.x = x;
cmd.y = y;
}
return this._sendCommand(cmd, 'value', callback);

@@ -231,0 +220,0 @@ },

{
"name": "marionette-client",
"version": "0.13.2",
"version": "0.13.3",
"main": "lib/marionette/index",

@@ -5,0 +5,0 @@ "description": "Marionette Javascript Client",

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