When running a Protractor test, the URL is usually specified in the spec file. However, it is possible to also include it directly in the spec.js file:
browser.get('www.google.com');
To run the test, the command would be:
protractor conf.js
Is there a way for Protractor to accept the URL from Command Line? For example:
protractor conf.js "www.google.com"
Although it's common to specify the URL in a config.properties file or within conf.js, having the ability to provide it via command line would offer more options. It could potentially allow for multiple URLs to be fed into an array and log outputs as well.
Thank you in advance.