Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit a9b1b04

Browse files
committed
Performance: Make path to chromedriver windows friendly
1 parent 49abcaf commit a9b1b04

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
var serverOptions = {},
2+
binPath = require( "chromedriver" ).path;
3+
4+
serverOptions[ "Dwebdriver.chrome.driver=" + binPath ] = "";
5+
16
module.exports = {
27
dev: {
38
options: {
49
downloadUrl: "https://selenium-release.storage.googleapis.com/2.45/" +
510
"selenium-server-standalone-2.45.0.jar",
611
downloadLocation: "node_modules/grunt-selenium-server/",
7-
serverOptions: {
8-
"Dwebdriver.chrome.driver=node_modules/chromedriver/bin/chromedriver": ""
9-
},
12+
serverOptions: serverOptions,
1013
systemProperties: {}
1114
}
1215
}
13-
}
16+
}

0 commit comments

Comments
 (0)