feat(clients): expand typed bindings with gesture, media, device and browser steps - #1
Merged
Merged
Conversation
…browser steps Add typed MaestroClient methods for the most common step types not yet wrapped in the TypeScript and Python clients: - Gestures: doubleTapOn, longPressOn, dragAndDrop, scrollUntilVisible - Assertions & media: assertScreenshot, takeScreenshot, copyTextFrom, pasteText, setClipboard - AI & scripting: assertWithAI, evalScript, runScript, evalBrowserScript - Device control: setLocation, setAirplaneMode, toggleAirplaneMode, setNetworkConditions, openNotifications, setDarkMode, setOrientation - Browser (web): openBrowser, switchTab, closeTab, getConsoleLogs, clearConsoleLogs, assertNoJSErrors, mockNetwork Each method maps 1:1 to a server step type. The low-level executeStep/execute_step still forwards any raw step dict, so the remaining ~90 server step types remain reachable. Docs (client READMEs + tutorials) updated with a full method table and examples.
e2e-android: Run #13
❌ Some tests failed!
Github Test Reporter by CTRF 💚 |
e2e-android: Run #14
❌ Some tests failed!
Github Test Reporter by CTRF 💚 |
pr4bh4sh
force-pushed
the
feat/expand-client-bindings
branch
from
August 29, 2026 06:25
64720b6 to
bb6b96a
Compare
3 tasks
e2e-android: Run #15
🎉 All tests passed!Github Test Reporter by CTRF 💚 |
e2e-android: Run #18
❌ Some tests failed!
Github Test Reporter by CTRF 💚 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expands the TypeScript and Python
MaestroClientbindings so the most common server step types are available as typed, autocompleted methods instead of only via the rawexecuteStepescape hatch.doubleTapOn,longPressOn,dragAndDrop,scrollUntilVisibleassertScreenshot,takeScreenshot,copyTextFrom,pasteText,setClipboardassertWithAI,evalScript,runScript,evalBrowserScriptsetLocation,setAirplaneMode,toggleAirplaneMode,setNetworkConditions,openNotifications,setDarkMode,setOrientationopenBrowser,switchTab,closeTab,getConsoleLogs,clearConsoleLogs,assertNoJSErrors,mockNetworksetPermissions,resetPermissions,evalWebViewScript,runWebViewScriptEach method maps 1:1 to a server step type. The low-level
executeStep/execute_stepstill forwards any raw step dict, so the remaining ~90 server step types remain reachable.Verification
npm run build(tsc) passes for the TypeScript client.python3 -m py_compilepasses for the Python client.Test plan
cd client/typescript && npm run build && npm run lintcd client/python && pip install -e ".[dev]" && ruff check maestro_runner && mypy maestro_runnermaestro-runner serverto confirm the JSON payloads match the server.🤖 Generated with opencode