@testim/testim-cli
Version:
Command line interface for running Testing on you CI
21 lines (17 loc) • 469 B
JavaScript
/**
*
* Pulls a file from the device.
*
* @param {String} path device path to file
*
* @see https://github.com/appium/appium/blob/master/docs/en/appium-bindings.md#pull-file
* @type appium
*
*/
module.exports = function pullFileFromDevice(pathOnDevice) {
var requestOptions = {
path: '/session/:sessionId/appium/device/pull_file',
method: 'POST'
};
return this.requestHandler.create(requestOptions, { path: pathOnDevice });
};