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

Function queryUi

scripts/integration/cli.mjs:1191–1207  ·  view source on GitHub ↗
(label, body)

Source from the content-addressed store, hash-verified

1189}
1190
1191async function queryUi(label, body) {
1192 return retryHttpJson(
1193 "POST",
1194 `/api/simulators/${simulatorUDID}/action`,
1195 {
1196 action: "query",
1197 source: "native-ax",
1198 maxDepth: body.maxDepth ?? 8,
1199 ...body,
1200 },
1201 `${label} query`,
1202 {
1203 attempts: 1,
1204 maxElapsedMs: body.maxElapsedMs ?? httpActionBudgetMs,
1205 },
1206 );
1207}
1208
1209async function waitForUiElement(label, selector, options = {}) {
1210 return retryHttpJson(

Callers 3

verifyUiFunction · 0.85
waitForUiTextFunction · 0.85

Calls 1

retryHttpJsonFunction · 0.85

Tested by

no test coverage detected