Skip to content

Conversation

@vsemozhetbyt
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt commented Oct 5, 2017

Fixes: #864 (see #864 (comment))
Refs: https://peter.sh/experiments/chromium-command-line-switches/#auto-open-devtools-for-tabs

Unfortunately, I do not know if this option needs a test and how it should be tested if needed. Please, let me know what code should I add to the tests,

@paulirish
Copy link
Contributor

Personally I think this is better solved with manually adding that flag like:

puppeteer.launch({args: ['--auto-open-devtools-for-tabs']})

@vsemozhetbyt vsemozhetbyt force-pushed the auto-open-devtools-for-tabs branch from 9f793f3 to 9ae6779 Compare October 5, 2017 23:12
@aslushnikov
Copy link
Contributor

@paulirish The bare-bone flag is a minimalistic approach yet not very convenient.

devtools option is nice because:

  • it's hard to memorize the chrome flag
  • the devtools option costs nothing to maintain
  • it's a feature parity with nightmare

Copy link
Contributor

@JoelEinbinder JoelEinbinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it.

lib/Launcher.js Outdated
Copy link
Contributor

@paulirish paulirish Oct 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsemozhetbyt we discussed and folks are comfortable with this. (including me. :)

can you also set options.headless = false automatically if devtools is true?

Copy link
Contributor Author

@vsemozhetbyt vsemozhetbyt Oct 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've amended. Is it OK now?

@vsemozhetbyt vsemozhetbyt force-pushed the auto-open-devtools-for-tabs branch from 9ae6779 to b7f0f0f Compare October 9, 2017 21:42
@aslushnikov aslushnikov merged commit f1aa18a into puppeteer:master Oct 10, 2017
@vsemozhetbyt vsemozhetbyt deleted the auto-open-devtools-for-tabs branch October 10, 2017 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants