15

How can I remove this message by default?

I'm using Puppeteer, when chromium launches, it shows this message.

enter image description here

Mehdi Raash
  • 8,721
  • 2
  • 29
  • 42

1 Answers1

34

You can try

puppeteer.launch({
  args: ['--disable-infobars']
})

https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions https://peter.sh/experiments/chromium-command-line-switches/#disable-infobars


2020 UPDATE:

This flag has been deprecated by chromium citing that its a security risk and "can be misused for malicious purposes"

You can achieve the same effect by using:

puppeteer.launch({
  ignoreDefaultArgs: ['--enable-automation']
})

This however may have other side effects.

vdegenne
  • 12,272
  • 14
  • 80
  • 106
Pandelis
  • 1,854
  • 13
  • 20