Log console errors using protractor
问题 I am trying to log console errors in protractor like this log output is in format { level: { value: 900, name: 'WARNING' }, message: 'message', timestamp: 1442090739962, type: '' }, { level: { value: 800, name: 'INFO' }, message: 'message', timestamp: 1442090740723, type: '' }, { level: { value: 1000, name: 'ERROR' }, message: 'error message', timestamp: 1442090740723, type: '' }, I want to catch only errors so i have written test like this it('it should be detect console errors', function()