forked from enviPath/enviPy
Current Dev State
This commit is contained in:
28
static/js/ketcher2/node_modules/webdriverio/lib/protocol/pullFolder.js
generated
vendored
Normal file
28
static/js/ketcher2/node_modules/webdriverio/lib/protocol/pullFolder.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
*
|
||||
* Pulls a folder from the device's file system.
|
||||
*
|
||||
* <example>
|
||||
:pullFolder.js
|
||||
browser.pullFolder('/data/local/tmp')
|
||||
* </example>
|
||||
*
|
||||
* @param {String} path device path to folder
|
||||
*
|
||||
* @type mobile
|
||||
* @for ios, android
|
||||
*
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
|
||||
export default function pullFolder (path) {
|
||||
if (typeof path !== 'string') {
|
||||
throw new ProtocolError('pullFolder requires a parameter (path to folder) from type string')
|
||||
}
|
||||
|
||||
return this.requestHandler.create({
|
||||
path: '/session/:sessionId/appium/device/pull_folder',
|
||||
method: 'POST'
|
||||
}, { path })
|
||||
}
|
||||
Reference in New Issue
Block a user