Mehdi Raash
Mehdi Raash

Reputation: 8985

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

How can I remove this message by default?

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

enter image description here

Upvotes: 15

Views: 15277

Answers (1)

Pandelis
Pandelis

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

Related Questions