mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-02-02 20:43:39 +00:00
name & desc
This commit is contained in:
@@ -28,8 +28,8 @@ const lib = process.argv[4];
|
|||||||
const playwright = await import(lib).then(mod => mod.default ?? mod) as typeof import('playwright');
|
const playwright = await import(lib).then(mod => mod.default ?? mod) as typeof import('playwright');
|
||||||
|
|
||||||
class VSCodeBrowserContextFactory implements BrowserContextFactory {
|
class VSCodeBrowserContextFactory implements BrowserContextFactory {
|
||||||
name = 'unused';
|
name = 'vscode';
|
||||||
description = 'unused';
|
description = 'Connect to a browser running in the Playwright VS Code extension';
|
||||||
|
|
||||||
async createContext(clientInfo: ClientInfo, abortSignal: AbortSignal): Promise<{ browserContext: BrowserContext; close: () => Promise<void>; }> {
|
async createContext(clientInfo: ClientInfo, abortSignal: AbortSignal): Promise<{ browserContext: BrowserContext; close: () => Promise<void>; }> {
|
||||||
connectionString.searchParams.set('launch-options', JSON.stringify({
|
connectionString.searchParams.set('launch-options', JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user