Socket
Socket
Sign inDemoInstall

wd

Package Overview
Dependencies
Maintainers
4
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wd - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

14

lib/image-element.js
//ImageElement object
//Wrapper around tap methods
var __slice = Array.prototype.slice;
var TouchAction = require('./actions').TouchAction;

@@ -33,6 +32,17 @@ var ImageElement = function(rect, browser) {

Object.defineProperty(ImageElement, 'TouchAction', {
// only want to load the TouchAction class once, and only after all files
// are loaded, so as to avoid circularity in the module loading
get: function () {
if (!this._touchAction) {
this._touchAction = require('./actions').TouchAction;
}
return this._touchAction;
}
});
ImageElement.prototype.click = function (cb) {
var _this = this;
this.emit('command', "CALL" , "imageElement.click()")
var action = new TouchAction(this.browser);
var action = new this.TouchAction(this.browser);
action.tap(this.x, this.y);

@@ -39,0 +49,0 @@ action.perform(function(err) {

2

package.json

@@ -11,3 +11,3 @@ {

],
"version": "1.10.0",
"version": "1.10.1",
"author": "Adam Christian <adam.christian@gmail.com>",

@@ -14,0 +14,0 @@ "contributors": [

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