How to use the node-simctl.getAppContainer function in node-simctl

To help you get started, we’ve selected a few node-simctl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appium / appium-ios-simulator / lib / simulator-xcode-8.js View on Github external
async isAppInstalled (bundleId) {
    try {
      const appContainer = await getAppContainer(this.udid, bundleId, false);
      return appContainer.endsWith('.app');
    } catch (err) {
      // get_app_container subcommand fails for system applications,
      // so we try the hidden appinfo subcommand, which prints correct info for
      // system/hidden apps
      try {
        const info = await appInfo(this.udid, bundleId);
        return info.includes('ApplicationType');
      } catch (e) {
        return false;
      }
    }
  }
github appium / appium-xcuitest-driver / lib / commands / actions.js View on Github external
      async (x) => await getAppContainer(device.udid, x));
    log.info(`Parsed bundle identifier '${bundleId}' from '${remotePath}'. ` +
github appium / appium-xcuitest-driver / lib / commands / file-movement.js View on Github external
      async (appBundle, containerType) => await getAppContainer(device.udid, appBundle, null, containerType));
    log.info(`Parsed bundle identifier '${bundleId}' from '${remotePath}'. ` +