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.6.2 to 1.7.0

3

doc/jsonwire-full.json

@@ -130,2 +130,3 @@ {

"POST /session/:sessionId/network_connection": "Set appium selendroid network connection type (mjsonWire).",
"GET /session/:sessionId/appium/device/is_keyboard_shown": "Whether or not the soft keyboard is shown (mjsonWire).",
"POST /session/:sessionId/appium/device/hide_keyboard": "Hide keyboard (mjsonWire).",

@@ -141,3 +142,5 @@ "POST /session/:sessionId/appium/device/open_notifications": "Open Notifications (mjsonWire).",

"POST /session/:sessionId/appium/device/network_speed": "Set Android emulator network speed (mjsonWire).",
"POST /session/:sessionId/appium/device/get_clipboard": "Get the content of the system clipboard (mjsonWire).",
"POST /session/:sessionId/appium/device/set_clipboard": "Set the content of the system clipboard (mjsonWire).",
"POST /session/:sessionId/simulator/touch_id": "Simulate iOS touchID (mjsonWire)"
}

2

package.json

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

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

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

@@ -710,2 +710,17 @@ var nock = require('nock'),

it("isKeyboardShown", function(done) {
nock.cleanAll();
server
.get('/session/1234/appium/device/is_keyboard_shown')
.reply(200, {
status: 0,
sessionId: '1234',
value: true
});
browser
.isKeyboardShown()
.should.become(true)
.nodeify(done);
});
it("hideDeviceKeyboard, passing key", function(done) {

@@ -1153,2 +1168,37 @@ nock.cleanAll();

});
it("getClipboard", function (done) {
nock.cleanAll();
server
.post(
'/session/1234/appium/device/get_clipboard',
{contentType: 'plaintext'}
)
.reply(200, {
status: 0,
sessionId: '1234',
value: 'testing'
});
browser
.getClipboard('plaintext')
.should.eventually.equal('testing')
.nodeify(done);
});
it("setClipboard", function (done) {
nock.cleanAll();
var base64Data = new Buffer.from('Hello').toString('base64');
server
.post(
'/session/1234/appium/device/set_clipboard',
{content: base64Data, contentType: 'plaintext'}
)
.reply(200, {
status: 0,
sessionId: '1234'
});
browser
.setClipboard(base64Data, 'plaintext')
.nodeify(done);
});
});

@@ -1155,0 +1205,0 @@ });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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