MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / resolveOpenUrlPrompt

Function resolveOpenUrlPrompt

scripts/integration/js-api.mjs:375–392  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

373}
374
375async 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
394async function resolveKeyboardTipPrompt(label) {
395 const snapshot = await safeQuery({}, { maxDepth: 8 });

Callers 1

Calls 3

safeQueryFunction · 0.85
logMethod · 0.80
sleepFunction · 0.70

Tested by

no test coverage detected