Inject alpha playwright in to our automation in MCP case (#262564)

This fixes things for MCP... with a hack. But Playwright is not interested in having interop between Playwright & Playwright MCP atm... so this is the best we can do for now.
This commit is contained in:
Tyler James Leonhardt
2025-08-20 14:02:18 -07:00
committed by GitHub
parent eadd76d8df
commit 14077dbc5b
8 changed files with 25 additions and 866 deletions

View File

@@ -5,6 +5,7 @@
import * as cp from 'child_process';
import * as os from 'os';
import * as playwright from 'playwright';
import { IElement, ILocaleInfo, ILocalizedStrings, ILogFile } from './driver';
import { Logger, measureAndLog } from './logger';
import { launch as launchPlaywrightBrowser } from './playwrightBrowser';
@@ -14,6 +15,8 @@ import { teardown } from './processes';
import { Quality } from './application';
export interface LaunchOptions {
// Allows you to override the Playwright instance
playwright?: typeof playwright;
codePath?: string;
readonly workspacePath: string;
userDataDir: string;