javascriptseleniumselenium-webdriverselenium-chromedriver

How to remove "chrome is being controlled by automated test software" selenium javascript


Is there anyway to remove the "chrome is being controlled by automated test software" notification in selenium JavaScript. Already tried disable info-bar but turns out chrome patched that couple years back.


Solution

  • var options = new chrome.Options();
    
    options.excludeSwitches('enable-automation')
    

    use chrome options.excludeSwitches, this will remove the automation flag that causing that notification