spectron
spectron copied to clipboard
The argument of app can't contains absolutely path on Windows
Hello,
I have defined an App with argument with absolutely path as below:
const app = module.exports = new Application({ path: process.env.appExec, // eslint-disable-line
args: ['--feature-flag', 'OUTPUT_PERFORMANCE_FILE=C:\Users\Administrator\Documents\test\e2e\output\PerformanceOutput.txt'],
webdriverOptions: {
deprecationWarnings: false,
},
});
When I start the app, it failed to start with error below:
But if I change the args with relative path, app start success.
const app = module.exports = new Application({ path: process.env.appExec, // eslint-disable-line
args: ['--feature-flag', 'OUTPUT_PERFORMANCE_FILE=test\e2e\output\PerformanceOutput.txt'],
webdriverOptions: {
deprecationWarnings: false,
},
});
Actually, If I run our App on Windows console with arguments as absolutely path, it works
MyApp --feature-flag OUTPUT_PERFORMANCE_FILE=C:\Users\Administrator\Documents\test\e2e\output\PerformanceOutput.txt
My spectron version is 10.0.1
i am also facing the same issue. My spectron version is 13.0.0. any work around?