๐ฌ .readFile(filePath)
This is a proposal for functionality that may be implemented in the future.
TODO: Description here.
Usage
device.readFile(filePath)
Parameters
filePath(String): TODO: Description here.
Returns
Promise (Buffer): A promise containing a base64 buffer.
Support
| Platform | Supported |
|---|---|
| iOS | Yes |
| Android | Yes |
| Web | Unknown |
Examples
Retrieve contents of file on device:
const { device } = require("appdriver");
(async () => {
await device.readFile("/data/local/tmp/file.txt");
})();