MCPcopy Index your code
hub / github.com/callstack/agent-device / findTextWithAppleRunner

Function findTextWithAppleRunner

src/daemon/selector-runtime-backend.ts:174–186  ·  view source on GitHub ↗
(
  params: SelectorRuntimeDeviceParams,
  text: string,
)

Source from the content-addressed store, hash-verified

172}
173
174async function findTextWithAppleRunner(
175 params: SelectorRuntimeDeviceParams,
176 text: string,
177): Promise<boolean | null> {
178 const target = readAppleRunnerFindTextTarget(params);
179 if (!target) return null;
180 const result = (await runAppleRunnerCommand(
181 target.device,
182 { command: 'findText', text, appBundleId: target.appBundleId },
183 buildAppleRunnerFindTextOptions(params, target),
184 )) as { found?: boolean };
185 return result?.found === true;
186}
187
188function readAppleRunnerFindTextTarget(
189 params: SelectorRuntimeDeviceParams,

Callers 1

findTextFunction · 0.85

Calls 3

runAppleRunnerCommandFunction · 0.90

Tested by

no test coverage detected