Ex: conf.js
exports.config = {
directConnect: false,
// multiCapabilities: [{
// browserName: \'firefox\'
// }, {
// browserName: \
Yes, you can access all the config values using browser.getProcessedConfig
.Check here for more details
An example below
describe('test', function(){
it('test', function(){
browser.get('http://www.way2automation.com/angularjs-protractor/registeration/#/login');
browser.getProcessedConfig().then(function(config){
console.log(config.baseUrl) // Print Url
console.log(config.specs) // Prints specs
console.log(config.capabilities) // Prints capabilities
})
browser.sleep(10000)
});
});
In case you are looking to make it re-usable
this.getConfParameterValue = function() {
return browser.getProcessedConfig().then(function(config) {
return config.directConnect;
})
}