| 165 | }; |
| 166 | |
| 167 | export 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 | |
| 183 | export function bindInteractionCommands(runtime: AgentDeviceRuntime): BoundInteractionCommands { |
| 184 | return { |