LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Unanswered

How can I use command line arguments in Angularjs Protractor?

I'm using Protractor to perform some end to end tests, and I'd like to pass in login credentials through the command line instead of storing them in a spec file. I found one post where someone used process.argv.forEach, but how can I store those values and use them in another spec file? I have a file called login-spec.js where I'd like to use the command-line arguments.

Thanks!

Up Vote Down Vote 0 Votes
Posted 29 days ago

Answers

117 Views
0 Answers
29 days ago