Thursday, October 29Be an Automation Engineer

Tag: Logging Preferences

Setting Logging preferences in protractor: loggingPrefs


There are different loggers and their log levels in protractor. Click here to read about loggers.

We can configure the logging levels in protraction configuration file.

capabilities: { 'browserName': 'chrome', 'loggingPrefs': { 'driver': 'WARNING', 'server': 'WARNING', 'browser': 'INFO' } }

Execute the below spec to capture the console log.

describe('Capture Console messages', function() { beforeEach(function() { browser.get('') }); » Continue Reading.