// can only be started with a file on the local filesystem as argument
tempBootstrapJs = unpackBootstrap();
String executableName = getConfig().getProperty(PROP_PHANTOMJS_BIN);
if (executableName == null) {
BrowserInstallation installation = new Locator().findBrowserLocation();
if (installation == null) {
throw new InitializationError( //
"phantomjs could not be found in the path!\n"
+ "Please add the directory containing 'phantomjs' or 'phantomjs.exe' to your PATH environment\n"
+ "variable, or explicitly specify a path to phantomjs in stjs-test.properties like this:\n"
+ PROP_PHANTOMJS_BIN + "=/blah/blah/phantomjs");
}
executableName = installation.launcherFilePath();
}
new ProcessBuilder( //
executableName, //
"--web-security=no", //
tempBootstrapJs.getAbsolutePath(), //