Currently, the following config can be added in order to make WSL (Windows Susbsystem for Linux) use the locally installed Chrome on Windows in order to run component tests:
capabilities: {
browserName: 'chrome',
version: '',
platform: 'ANY',
specs: [path.join(process.cwd(), 'features', '**', '*.feature')],
chromeOptions: {
binary: "/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe",
args: ['--no-sandbox', 'lang=en-US', '--disable-gpu', '--always-authorize-plugins',
'user-data-dir=node_modules/.cache/chrome/',
'disk-cache-dir=node_modules/.cache/chrome/',
'load-extensions=node_modules/.cache/chrome/',
],
},
loggingPrefs: {
driver: process.env.LOG_LEVEL_DRIVER,
server: process.env.LOG_LEVEL_SERVER,
browser: process.env.LOG_LEVEL_BROWSER,
performance: 'ALL',
},
},
However, this just results in Chrome simply launching, but not navigating to the actual system under tests.