forked from enviPath/enviPy
Current Dev State
This commit is contained in:
29
static/js/ketcher2/node_modules/webdriverio/lib/protocol/removeApp.js
generated
vendored
Normal file
29
static/js/ketcher2/node_modules/webdriverio/lib/protocol/removeApp.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
*
|
||||
* Remove an app from the device.
|
||||
*
|
||||
* <example>
|
||||
:removeApp.js
|
||||
browser.removeApp('com.example.android.apis');
|
||||
* </example>
|
||||
*
|
||||
* @param {String} bundleId bundle ID of application
|
||||
*
|
||||
* @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/appium-bindings.md#remove-app
|
||||
* @type mobile
|
||||
* @for android
|
||||
*
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
|
||||
export default function removeApp (bundleId) {
|
||||
if (typeof bundleId !== 'string') {
|
||||
throw new ProtocolError('removeApp command requires bundleId parameter from type string')
|
||||
}
|
||||
|
||||
return this.requestHandler.create({
|
||||
path: '/session/:sessionId/appium/device/remove_app',
|
||||
method: 'POST'
|
||||
}, { bundleId })
|
||||
}
|
||||
Reference in New Issue
Block a user