Index: test/runners/chromium_process.js |
=================================================================== |
--- a/test/runners/chromium_process.js |
+++ b/test/runners/chromium_process.js |
@@ -29,21 +29,23 @@ |
// Chromium 65.0.3325.0 is 530368 |
// We currently want Chromiun 63, as we still support it and that's the |
// loweset version that supports WebDriver. |
const CHROMIUM_REVISION = 508578; |
function runScript(chromiumPath, script, scriptName, scriptArgs) |
{ |
const options = new chrome.Options() |
- .headless() |
// Disabling sandboxing is needed on some system configurations |
// like Debian 9. |
.addArguments("--no-sandbox") |
.setChromeBinaryPath(chromiumPath); |
+ // Headless doesn't seem to work on Windows. |
+ if (process.platform != "win32") |
+ options.headless(); |
const driver = new Builder() |
.forBrowser("chrome") |
.setChromeOptions(options) |
.build(); |
return executeScript(driver, "Chromium (WebDriver)", |
script, scriptName, scriptArgs); |