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

Function bindSelectorCommands

src/commands/interaction/runtime/index.ts:167–181  ·  view source on GitHub ↗
(runtime: AgentDeviceRuntime)

Source from the content-addressed store, hash-verified

165};
166
167export function bindSelectorCommands(runtime: AgentDeviceRuntime): BoundSelectorCommands {
168 return {
169 find: (options) => selectorCommands.find(runtime, options),
170 get: (options) => selectorCommands.get(runtime, options),
171 getText: (target, options = {}) => selectorCommands.getText(runtime, { ...options, target }),
172 getAttrs: (target, options = {}) => selectorCommands.getAttrs(runtime, { ...options, target }),
173 is: (options) => selectorCommands.is(runtime, options),
174 isVisible: (target, options = {}) =>
175 selectorCommands.isVisible(runtime, { ...options, target }),
176 isHidden: (target, options = {}) => selectorCommands.isHidden(runtime, { ...options, target }),
177 wait: (options) => selectorCommands.wait(runtime, options),
178 waitForText: (text, options = {}) =>
179 selectorCommands.waitForText(runtime, { ...options, text }),
180 };
181}
182
183export function bindInteractionCommands(runtime: AgentDeviceRuntime): BoundInteractionCommands {
184 return {

Callers 1

bindCommandsFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected