Reputation: 8985
How can I remove this message by default?
I'm using Puppeteer, when chromium launches, it shows this message.
Upvotes: 15
Views: 15277
Reputation: 1988
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.
Upvotes: 39