For example: conf.js
exports.config = {
directConnect: true,
// multiCapabilities: [{
// browserName: 'firefox'
// }, {
// browserName: 'chrome'
// }, {
// browserName: 'internet explorer'
// }],
specs: ['Specs/spec.js'],
seleniumAddress: 'http://localhost:4444/wd/hub',
}
In the Specs:
it('should be able to interact with the organization', function() {
Select_Organization.selectOrganization();
//console.log(browser.seleniumAddress);
//I need to access the configuration parameter values from the conf.js file to perform certain actions based on these values.
expect(browser.getTitle()).toEqual('p3 by NextGen - CSR & Development Capital Management Platform');
});
I want to retrieve the parameter values set in the conf.js file so that I can use them in the specs.js file to determine appropriate course of action based on those parameters. Is there a way to achieve this?