(label)
| 373 | } |
| 374 | |
| 375 | async function resolveOpenUrlPrompt(label) { |
| 376 | const matches = await safeQuery({ label: "Open" }, { maxDepth: 6 }); |
| 377 | if (matches.length === 0) { |
| 378 | return; |
| 379 | } |
| 380 | console.log(`[prompt] handling open-url prompt during ${label}`); |
| 381 | await session.tapElement( |
| 382 | simulatorUDID, |
| 383 | { label: "Open" }, |
| 384 | { |
| 385 | source: "native-ax", |
| 386 | maxDepth: 6, |
| 387 | waitTimeoutMs: 2_000, |
| 388 | durationMs: 80, |
| 389 | }, |
| 390 | ); |
| 391 | await sleep(500); |
| 392 | } |
| 393 | |
| 394 | async function resolveKeyboardTipPrompt(label) { |
| 395 | const snapshot = await safeQuery({}, { maxDepth: 8 }); |
no test coverage detected