How to remove "Chrome is being controlled by automated test software"

Viewed 8758

How can I remove this message by default?

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

enter image description here

1 Answers

You're looking for the --disable-infobars flag.

Pass this to puppeteer.launch([options])

Where

options = {
args: ['--disable-infobars']
}

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

UPDATE in 2020:

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:

options = {
    ignoreDefaultArgs: ["--enable-automation"]
}

This however may have other side effects.

Related