๐ฌ .writeFile(filePath, data)
This is a proposal for functionality that may be implemented in the future.
TODO: Description here.
Usage
device.writeFile(filePath, data)
Parameters
filePath
(String
): TODO: Description here.data
(Buffer | String
): TODO: Description here.
Returns
Promise
: TODO: Description here.
Support
Platform | Supported |
---|---|
iOS | Yes |
Android | Yes |
Web | Unknown |
Examples
Store file on device:
const { device } = require("appdriver");
(async () => {
const data = new Buffer("Hello World!");
await device.writeFile("/data/local/tmp/file.txt", data);
})();