I am using protractor v1.4.0 and I want to install the protractorUrl database from the command line, so I cannot use
baseUrl: 'http://localhost:8000/',
config in the protractor configuration file. I want to define the default value for the base url with the params parameter in the protractor configuration file as follows:
params: { baseUrl: 'http://localhost:8080/' },
and then overwrite the default value by passing the new value from the command line when I started the protractor as follows:
protractor 'path_to_my_conf_file' --params.baseUrl http://localhost:80/
then in my spec file I need to set the base url using the protractor APIs, but I can not find how to do this.
The 1st answer to the next question is exactly what I need, but it does not work.
How can I dynamically add URLs to Protractor tests?
source share