Search code examples
node.jschromiumpuppeteer

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


Solution

  • 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.