Posted in

VS Code Browser Agent Tools

πŸ”Ή Feature: VS Code Browser Agent Tools
πŸ”Ή What It Does: Browser agent tools let GitHub Copilot in VS Code drive the integrated browser autonomously β€” open pages, click buttons, type into fields, take screenshots, run Playwright code, and read console errors. The agent builds your app, opens it in the browser, tests every interaction, discovers bugs, fixes them, and verifies the fix. A complete closed development loop, no human in the test driver’s seat. πŸŒπŸ€–

What Is It Giving You:
βœ… Full Closed-Loop Dev Cycle: Build β†’ run β†’ test β†’ identify issues β†’ fix β†’ verify, all by the agent. You watch instead of click.
βœ… Real Browser Automation: openBrowserPage, navigatePage, clickElement, hoverElement, dragElement, typeInPage, handleDialog, screenshotPage, readPage β€” plus runPlaywrightCode for any custom interaction you can write.
βœ… Visual + Console Debugging: Agent inspects rendered pages, reads console errors, and analyzes screenshots β€” catches bugs that unit tests miss.
βœ… Isolated Sessions by Default: Pages opened by the agent run in private, in-memory browser sessions β€” no cookies or storage shared with your normal browsing. Sandboxed by design.
βœ… Share a Real Page When Needed: β€œShare with Agent” lets you hand the agent a logged-in browser tab (cookies + session intact) for tasks that need real auth. Revoke with one click.
βœ… Great Test Scenarios Out of the Box: Form validation, responsive layout verification, authentication flows, interactive UI state, and accessibility audits (alt text, heading hierarchy, contrast).

🌐 https://code.visualstudio.com/docs/agents/guides/browser-agent-testing-guide

Microsoft Certified Trainer, Office 365, AWS, Azure and Cloud Expert-Architect. In the IT world for over than 20 years.

Apart from the main area of Microsoft Azure expert in the field of infrastructure servers Windows Server 2003-2019, Microsoft Active Directory, Hyper-V Private Cloud, IIS, System Center, SQL.

Private Cloud, System Center, Hyper-V, Open Stack Expert and all Microsoft products Expert. Linux Server administrator.

My Azure community projects:

https://mazeball.azurewebsites.net/
https://github.com/MariuszFerdyn?tab=repositories

More