INNER CODE UNIT · TypeScript

activateApp

blokadaorg/blokada · automation/appium/wdio/src/flows/app.ts:50

export async function activateApp(bundleId: string): Promise<void> {
  try {
    await driver.activateApp(bundleId);
  } catch (error) {
    console.warn(`activateApp fell back to launch for ${bundleId}: ${String(error)}`);
    await driver.execute("mobile: activateApp", { bundleId });
  }
  await waitForAppForeground(bundleId);
}

export async function removeAppIfPresent(bundleId: string): Promise<void> {
  try {
    const isInstalled = await driver.isAppInstalled(bundleId);
    if (!isInstalled) {
      return;
    }
    await driver.removeApp(bundleId);
    await waitForAppTermination(bundleId).catch(() => undefined);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…