dequelabs / grunt-axe-webdriver

Mozilla Public License 2.0
12 stars 11 forks source link

using Chrome without any browserArguments is not working anymore #39

Closed chrisguttandin closed 5 years ago

chrisguttandin commented 6 years ago

Hi, I discovered today that using a minimal configuration like that doesn't work anymore.

grunt.initConfig({
    'axe-webdriver': {
        chrome: {
            options: {
                browser: 'chrome'
            },
            urls: [
                'http://example.com'
            ]
        }
    }
});

If I use the configuration from above, Chrome will be opened with a lot of tabs which kind of try to load the command line switches as urls. (http://--disable-background-networking/, http://--disable-client-side-phishing-detection/, http://--disable-default-apps/, ...)

After some time I found out that specifying the browserArguments with something other than the default value (' ') does work. Giving it an empty array does for example work as expected.

I'm not sure if changing the default value to an empty array would be a viable fix, though. Maybe the issue is just a symptom of a bug somewhere deeper in the dependency tree.