The option to disable infobar "Chrome is being controlled by automated test software" was removed from Chrome.

Chrome version: 65.0.3325.146

Chrome driver: 2.36

OS: Windows 10

I used the code below:

ChromeOptions option = new ChromeOptions();
driver = new ChromeDriver(option);

Do we have any solutions, how to disable infobar, please ?


Disabling infobars is not supported anymore by Chromium.

According to them,

Remove --disable-infobars.

This flag is no longer needed by the perf testing infrastructure and can be misused for malicious purposes, so remove it.

So either you can downgrade your chrome version or start ignoring the infobar in the new version.

| improve this answer | |

Solution for Java, Python, Ruby, JS, Protractor


| improve this answer | |
  • 1
    Please don't post links without explanation. The article is a good one, but you should post a summary of the article before directing users to it. – Kate Paulk Sep 13 '19 at 12:25

You can try these two experimental options:

ChromeOptions options = new ChromeOptions();    
options.setExperimentalOption("useAutomationExtension", false);
WebDriver driver = new ChromeDriver(options);
| improve this answer | |
  • The problem will not be solved by this code. Other suggestions, please. – Majkl Mar 12 '18 at 14:37
  • This solution worked for me in Selenium – T-coder Mar 19 '18 at 20:43

Disable infobar in Chrome is working fine, even in the latest chrome version 69 along with chromedriver version 2.42.

Steps to Disable infobars in Chrome.

  • Define ChromeOptions

    ChromeOptions co = new ChromeOptions();

  • Add ChromeOptions to desired capabilities

    DesiredCapabilities dc = new DesiredCapabilities();
    dc.setCapability(ChromeOptions.CAPABILITY, co);

  • Add DesiredCapabilities to Webdriver

    driver = new ChromeDriver(dc);

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.