我是一名在Visual Studio Code中进行调试的Protractor解决方案。请问我该如何在launch.json文件中将baseUrl作为参数传递?
这是我的protractor.conf.js文件:
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
//baseUrl: 'xxx',
...
};
这是我的launch.json文件:
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch e2e Tests",
"type": "node",
"program": "node_modules/protractor/lib/cli.js",
"stopOnEntry": false,
"args": ["protractor.conf.js","--baseUrl='pippo'" ],
"cwd": ".",
"runtimeExecutable": null,
"isShellCommand": true,
"runtimeArgs": [],
"env": { },
"sourceMaps": false,
"outDir": null
}
]
}