docs: update push file
MODIFY
commands-yml/commands/device/files/push-file.yml
commands-yml/commands/device/files/push-file.yml
@@ -8,7 +8,9 @@ example_usage:
driver.pushFile("/path/to/device/foo.bar", new File("/Users/johndoe/files/foo.bar"));
python:
|
- self.driver.push_file('/path/to/device/foo.bar', 'QXJlIHlvdXIgYmVlcnMgb2theT8=');
+ dest_path = '/data/local/tmp/test_push_file.txt'
+ data = bytes('This is the contents of the file to push to the device.', 'utf-8')
+ self.driver.push_file(dest_path, base64.b64encode(data).decode('utf-8'))
javascript_wd:
|
await driver.pushFileToDevice('/path/to/device/foo.bar', 'QXJlIHlvdXIgYmVlcnMgb2theT8=');
@@ -18,10 +20,10 @@ example_usage:
driver.pushFile('/data/local/tmp/file.txt', data);
ruby:
|
- push_file('/path/to/device/foo.bar', 'QXJlIHlvdXIgYmVlcnMgb2theT8=')
+ push_file('/path/to/device/foo.bar', File.read('path/to/file.png'))
ruby_core:
|
- @driver.push_file('/path/to/device/foo.bar', 'QXJlIHlvdXIgYmVlcnMgb2theT8=')
+ @driver.push_file('/path/to/device/foo.bar', File.read('path/to/file.png'))
php:
|
$driver->pushFile('/path/to/device/foo.bar', 'QXJlIHlvdXIgYmVlcnMgb2theT8=');

docs: update push file (#14423)