puppeteer: Removing infobars not working in Chromium or Chrome v64

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 5.6.0
  • Platform / OS version: Windows 10
  • Node.js version: v8.9.3
  • Chrome version: {Beta} 64.0.3282.71

What steps will reproduce the problem?

puppeteer.launch(options = {
     args: ['--disable-infobars']
});
// ^ Not working.

Setting viewport for page only resizes that page within the chrome tab, but not the chrome window itself (which is intended)

Though according to the documentation… https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md ^ Look at puppeteer launch options ^ notice the args section ^ takes you to --> https://peter.sh/experiments/chromium-command-line-switches/

which lists the argument as listed in the code above, yet is not working.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (2 by maintainers)

Most upvoted comments

Adding ignoreDefaultArgs: ["--enable-automation"] to the options in puppeteer.launch({...}) will remove the “Chrome is being controlled by automated test software” infobar.

It’s not working again…

For those who encounters into an extra infobars, just add '--enable-blink-features=IdleDetection' to ignoreDefaultArgs

Apparently it was added back. In initial testing, I’ve also been able to get rid of the message by removing the --enable-automation option from puppeteer’s default args.

Is there way to disable the info-bars now since the command “–disable-infobars” has been removed. I Need to disable the info bar when Chrome is launched using selenium

Adding ignoreDefaultArgs: ["--enable-automation"] to the options in puppeteer.launch({...}) will remove the “Chrome is being controlled by automated test software” infobar.

Seems to work in Playwright, too. Thanks!

Is there anyway to disable ? it looks pretty ugly in --kiosk mode.