VsCode SimpleBrowser extension to automate seemless copilot ui testing and QA #2768
Unanswered
kwkau
asked this question in
Extension Development QnA
Replies: 1 comment
-
What I would like to see here is a Chrome or Firefox style developer tool window that would give the agents access to the browser console from within vs-code. Whenever I have issues in the front-end currently I either troubleshooting myself with the console or copy and paste the console info to the chat. If simple-browser had a console the agents could fix most UI issues during automated testing. To me this seems like something that will be required to close the loop on vibe development. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
💡 [DISCUSSION] Proposal: Enable Screenshot Capture & DOM Interaction in the Simple Browser
Hey everyone 👋 — I'm working on an AI-powered VS Code extension (SIBA AI Simple Browser Extensions) that needs deeper interaction with the built-in Simple Browser. Right now, we’re hitting some limitations that make it hard to create truly seamless automation and AI workflows inside VS Code.
🔍 The Problem
We want our extension to:
Currently, there’s no official API to access or control the Simple Browser, so we’ve been forced to use workarounds like:
html2canvas
(which breaks on cross-origin or CSP-restricted pages)editorInsets
(which aren’t marketplace-friendly)📦 What We’re Proposing
We’d love to see some first-class API support for the Simple Browser that enables:
1.
vscode.simpleBrowser.getActivePanel()
Get a handle to the active Simple Browser instance.
2.
browser.captureScreenshot()
Capture a pixel-perfect image of what the user sees.
Internally this could call Electron’s
webContents.capturePage()
.3.
browser.evaluate<T>(script: string): Thenable<T>
Run scripts inside the page context, safely.
4.
browser.simulateEvent(selector: string, event: string, payload?: any)
Simulate clicks, typing, scrolling, etc.
🧠 Use Cases
🛡️ Security Thoughts
All of this would only apply to:
Optionally, a
vscode.experimental.enableSimpleBrowserInterop
setting could gate these APIs for early adopters.🔄 Alternatives Considered
editorInsets
+ JS injection📣 Why This Matters
With more AI tooling, test automation, and web-based workflows shifting into the IDE, the Simple Browser has the potential to be more than just a viewer. It could become an automation-ready interface — where intelligent agents, scripts, and extensions can interact with live web content in a secure, developer-friendly way.
I’d love your thoughts, feedback, or alternatives.
Would you use something like this in your extensions or workflows?
Let’s discuss 💬
Beta Was this translation helpful? Give feedback.
All reactions