Index: test/browsers/chromium.js |
=================================================================== |
--- a/test/browsers/chromium.js |
+++ b/test/browsers/chromium.js |
@@ -39,10 +39,12 @@ |
exports.getDriver = function(browserBinary, devenvPath) |
{ |
let options = new chrome.Options() |
- .setChromeBinaryPath(browserBinary) |
.addArguments("--no-sandbox") |
.addArguments(`load-extension=${devenvPath}`); |
+ if (browserBinary != null) |
+ options.setChromeBinaryPath(browserBinary); |
+ |
return new webdriver.Builder() |
.forBrowser("chrome") |
.setChromeOptions(options) |