You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.option('--user-data-dir <path>','path to the user data directory. If not specified, a temporary directory will be created.')
56
55
.option('--viewport-size <size>','specify browser viewport size in pixels, for example "1280, 720"')
57
56
.option('--vision','Run server that uses screenshots (Aria snapshots are used by default)')
58
-
.option('--extension','Allow connecting to a running browser instance (Edge/Chrome only). Requires the \'Playwright MCP\' browser extension to be installed.')
57
+
.addOption(newOption('--extension','Allow connecting to a running browser instance (Edge/Chrome only). Requires the \'Playwright MCP\' browser extension to be installed.').hideHelp())
59
58
.action(asyncoptions=>{
60
59
constconfig=awaitresolveCLIConfig(options);
61
-
if(config.extension)
62
-
// TODO: The issue is that inside 'new Server' we create the ContextFactory
63
-
// instances based on if there is a CDP address given.
console.error(`CDP relay server started on ws://127.0.0.1:${(httpServer.address()asAddressInfo).port}/extension - Connect to it using the browser extension.`);
82
+
console.error(`CDP relay server started on ${wsAddress}${CDPBridgeServer.EXTENSION_PATH} - Connect to it using the browser extension.`);
0 commit comments