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

Function findText

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

Source from the content-addressed store, hash-verified

155}
156
157async function findText(params: SelectorRuntimeDeviceParams, text: string): Promise<boolean> {
158 const macosSurfaceResult = await findTextInMacosNonAppSurface(params, text);
159 if (macosSurfaceResult !== null) return macosSurfaceResult;
160 const appleRunnerResult = await findTextWithAppleRunner(params, text);
161 if (appleRunnerResult !== null) return appleRunnerResult;
162 return await findTextInWaitSnapshot(params, text);
163}
164
165async function findTextInMacosNonAppSurface(
166 params: SelectorRuntimeDeviceParams,

Callers 1

createSelectorBackendFunction · 0.85

Calls 3

findTextWithAppleRunnerFunction · 0.85
findTextInWaitSnapshotFunction · 0.85

Tested by

no test coverage detected