@ekhein/lamda-node-sdk 10.8.3 → 10.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +4 -0
- package/dist/main.js +7 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -102,6 +102,13 @@ class Device {
|
|
|
102
102
|
return JSON.parse(call.callresult);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
+
async screenshot(options) {
|
|
106
|
+
return this.UiAutomator
|
|
107
|
+
.selectorTakeScreenshot(options)
|
|
108
|
+
.then(async (result) => {
|
|
109
|
+
return Buffer.from(result.value);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
105
112
|
}
|
|
106
113
|
exports.Device = Device;
|
|
107
114
|
__decorate([
|