Thursday, November 15Be an Automation Engineer

Tag: logging levels

Setting Logging preferences in protractor: loggingPrefs

Protractor

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('http://angularjs.org/') }); » Continue Reading.

Loggers and logging levels in protractor

Protractor

There are three different loggers in protractor.

  • Driver
  • Server
  • Browser

Driver logger:Driver logger is to capture the messages logged at driver level(Logged by the webdriver). Server logger: Server logger is to capture the messages logged at selenium server console. Browser logger: Browser logger is to capture the messages logged in the Browser console.

The logging levels available in » Continue Reading.