kazurayam / chromedriverfactory

A Java library that enables you to launch Selenium ChromeDriver using an existing user Profile. That let you to carry cookies over multiple HTTP sessions via user Profile.
0 stars 0 forks source link

want to get rid of the message "Chrome is controlled by automated software" #56

Closed kazurayam closed 3 months ago

kazurayam commented 4 months ago

I want to get rid of the message "Chrome is controlled by automated software", as found

With_the_message

See the following post for how to https://forum.katalon.com/t/chrome-is-being-controlled-by-automated-test-software-how-to-stop-it/122343


See https://help.applitools.com/hc/en-us/articles/360007189411--Chrome-is-being-controlled-by-automated-test-software-notification 1

In short, we can specify an option to ChromeDriver programatically;

ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("excludeSwitches", new String[]{"enable-automation"});
WebDriver driver = new ChromeDriver(options);
kazurayam commented 3 months ago

v0.7.2 supported enable-automation option

kazurayam commented 3 months ago

The default configuration should NOT include the enable-automation.

The enable-automation option is one way. You can not bring it off. So it is a bad idea to set it on by default.

kazurayam commented 3 months ago

Line#57 of https://github.com/kazurayam/chromedriverfactory/blob/master/src/main/java/com/kazurayam/webdriverfactory/chrome/ChromeDriverFactoryImpl.java

    private void prepareDefaultSettings() {
            ...
            //this.addChromeOptionsModifier(ChromeOptionsModifiers.enableAutomation());
    }