UNPKG

webdriverio-workflo

Version:

This is a customized version of webdriverio for use with workflo framework.

36 lines (31 loc) 935 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = removeApp; var _ErrorHandler = require('../utils/ErrorHandler'); function removeApp(bundleId) { if (typeof bundleId !== 'string') { throw new _ErrorHandler.ProtocolError('removeApp command requires bundleId parameter from type string'); } return this.requestHandler.create({ path: '/session/:sessionId/appium/device/remove_app', method: 'POST' }, { bundleId }); } /** * * 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/other/appium-bindings.md#remove-app * @type mobile * @for android * */ module.exports = exports['default'];