Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Playwright Browser Server#5424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
bmiddha wants to merge2 commits intomain
base:main
Choose a base branch
Loading
frombmiddha/playwright-browser-server

Conversation

@bmiddha
Copy link
Member

@bmiddhabmiddha commentedOct 30, 2025
edited
Loading

Summary

Introducing Playwright Browser Server. A CLI based tool to launch a remote browser provider for Playwright.

This tool enables using headful browsers on the local machine when using Playwright with VS Code remote sessions.

Use cases:

  • Running Playwright tests in Codespaces / WSL / VS Code Tunnels workspaces and using local browsers on the local computer
  • Running Playwright MCP in VS Code when using remote workspaces

Details

This tool uses areverse port forwarder concept to tunnel the Playwright WebSocket control messages over VS Code port forwarding.

Flow:

  • User has this playwright browser server tool running on the local computer
  • User runs a playwright test in a VS Code window connected to a Codespace
  • The browser fixture in the Codespace starts a server on a known port (3000). This log message is read by VS Code and it forwards this port.
  • The browser server tool is polling this known port to be opened.
  • Once a connection is established, it launches the requested browser with the launch options and sets up a forwarding between the Playwright browser and the existing open connection.
  • Test can now use the remote browser.

Playwright MCP can also be used through this setup in VS Code remote environments.

How it was tested

Tested end-to-end with the Playwright test and fixture introduced in this change.
Tested this on pure local setup as well as on Codespaces

Tested MCP change by prompting agent mode to use Playwright MCP on Codespaces.

@bmiddhabmiddhaforce-pushed thebmiddha/playwright-browser-server branch from4e78a35 to7956637CompareOctober 30, 2025 19:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@iclantoniclantonAwaiting requested review from iclantoniclanton will be requested when the pull request is marked ready for reviewiclanton is a code owner

@octogonzoctogonzAwaiting requested review from octogonzoctogonz will be requested when the pull request is marked ready for reviewoctogonz is a code owner

@apostolismsapostolismsAwaiting requested review from apostolismsapostolisms will be requested when the pull request is marked ready for reviewapostolisms is a code owner

@D4N14LD4N14LAwaiting requested review from D4N14LD4N14L will be requested when the pull request is marked ready for reviewD4N14L is a code owner

@dmichon-msftdmichon-msftAwaiting requested review from dmichon-msftdmichon-msft will be requested when the pull request is marked ready for reviewdmichon-msft is a code owner

@patmillpatmillAwaiting requested review from patmillpatmill will be requested when the pull request is marked ready for reviewpatmill is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

Status: Needs triage

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@bmiddha

[8]ページ先頭

©2009-2025 Movatter.jp