Comparing version 1.6.2 to 1.7.0
@@ -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)" | ||
} |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
978367
14374