INNER CODE UNIT · TypeScript

launchApp

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

export async function launchApp(bundleId: string): Promise<void> {
  await driver.execute("mobile: launchApp", { bundleId });
  await waitForAppForeground(bundleId);
}

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);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…