View Source Improve this doc

pushFile

Pushes a file to the device.

Usage

1
browser.pushFile(path);

Parameters

Param Type Details
path String local path to file

Example

pushFile.js
1
2
var data = new Buffer("Hello World").toString('base64')
browser.pushFile('/data/local/tmp/file.txt', data)

Support

Support for ios Support for android