Can I remove this notification - Chrome is being controlled by automated test software?
I have just updated my project with the latest chrome driver (2.28). When I run the browser through the driver, a yellow notification pops under the URL bar, saying "Chrome is being controlled by automated test software". Is there any way to configure Chrome not to show this notification? I used this code to start the driver:
ChromeOptions cOptions = new ChromeOptions();
cOptions.addArguments("test-type");
cOptions.addArguments("start-maximised");
cOptions.addArguments("--js-flags=--expose-gc");
cOptions.addArguments("--enable-precise-memory-info");
cOptions.addArguments("--disable-popup-blocking");
cOptions.addArguments("--disable-default-apps");
driver = new ChromeDriver(cOptions);
In chrome 57+ and chromedriver 2.28, the execution was not starting when driver.manage().window().maximise(); is used
Solution:
ChromeOptions options = new ChromeOptions();
options.addArguments("-incognito");
options.addArguments("start-maximised");
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver webDriver = new ChromeDriver(capabilities);//Capabilities is deprecated in latest version
Don't Use for the notification - Chrome is being controlled by automated test software
driver.manage().window().maximise();