Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,32 @@
/**
*
* Check if an app is installed.
*
* <example>
:isAppInstalled.js
it('should check if app is installed', function () {
var isAppInstalled = browser.isAppInstalled('com.example.android.apis');
console.log(isAppInstalled); // outputs: true
});
* </example>
*
* @param {String} bundleId ID of bundled app
*
* @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/appium-bindings.md#is-installed
* @type mobile
* @for android
*
*/
import { ProtocolError } from '../utils/ErrorHandler'
export default function isAppInstalled (bundleId) {
if (typeof bundleId !== 'string') {
throw new ProtocolError('isAppInstalled command requires bundleId parameter from type string')
}
return this.unify(this.requestHandler.create({
path: '/session/:sessionId/appium/device/app_installed',
method: 'POST'
}, { bundleId }))
}