Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

934 B
Raw Blame

playwright-injected

Vendored, unmodified sources from Microsoft Playwright (Apache-2.0 — see LICENSE), pinned to the commit in UPSTREAM_COMMIT:

  • src/ ← packages/injected/src/{ariaSnapshot,ariaSnapshotDistiller,domUtils,roleUtils}.ts
  • isomorphic/ ← packages/isomorphic/{ariaSnapshot,ariaSnapshotRenderer,stringUtils,cssTokenizer,yaml}.ts

entry.ts is OpenMausBot's: it exposes Playwright's accessibility-tree snapshot (the [ref=eN] YAML that playwright-mcp hands models) on window.__ombBrowser for the built-in browser surface, and resolves refs back to elements for clicks and fills.

scripts/build-browser-snapshot.mjs bundles this into electron/resources/browser-snapshot.js (committed). Re-run it after changing anything here. To refresh upstream, re-fetch the files above at a newer commit, update UPSTREAM_COMMIT, rebuild, and run the browser tests.