MCPcopy Create free account
hub / github.com/callstack/agent-device / parseFindSelectorExpression

Function parseFindSelectorExpression

src/utils/finders.ts:153–160  ·  view source on GitHub ↗
(
  locator: FindLocator,
  query: string,
)

Source from the content-addressed store, hash-verified

151}
152
153export function parseFindSelectorExpression(
154 locator: FindLocator,
155 query: string,
156): SelectorChain | null {
157 if (locator !== 'any') return null;
158 if (!query.includes('=') && !query.includes('||')) return null;
159 return tryParseSelectorChain(query);
160}
161
162function parseTimeout(value: string | undefined): number | null {
163 if (!value) return null;

Callers 3

findFirstLocatorMatchFunction · 0.90
handleFindCommandsFunction · 0.90
find-args.test.tsFile · 0.90

Calls 1

tryParseSelectorChainFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…