Skip to content

Commit d3b6e6c

Browse files
committed
docs: improve autoConnect docs
Mention chrome://inspect/#remote-debugging in CLI docs and error message.
1 parent 6ab6d85 commit d3b6e6c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function ensureBrowserConnected(options: {
8585
browser = await puppeteer.connect(connectOptions);
8686
} catch (err) {
8787
throw new Error(
88-
'Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled.',
88+
'Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled by going to chrome://inspect/#remote-debugging.',
8989
{
9090
cause: err,
9191
},

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const cliOptions = {
1111
autoConnect: {
1212
type: 'boolean',
1313
description:
14-
'If specified, automatically connects to a browser (Chrome 145+) running in the user data directory identified by the channel param.',
14+
'If specified, automatically connects to a browser (Chrome 145+) running in the user data directory identified by the channel param. Requires remote debugging being enabled in Chrome on chrome://inspect/#remote-debugging.',
1515
conflicts: ['isolated', 'executablePath', 'userDataDir'],
1616
default: false,
1717
coerce: (value: boolean | undefined) => {

0 commit comments

Comments
 (0)