INNER CODE UNIT · TypeScript

startX

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

  const startX = Math.round(rect.width / 2);
  const startY = Math.round(rect.height * 0.92);
  const endY = Math.round(rect.height * 0.35);

  try {
    await driver.execute("mobile: dragFromToForDuration", {
      duration: 0.7,
      fromX: startX,
      fromY: startY,
      toX: startX,
      toY: endY
    });
    await driver.pause(800);
  } catch (error) {
    console.warn(`App switcher gesture failed (${String(error)}). Falling back to activateApp.`);
    await activateApp(bundleId);
    return;
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…