angularjs - Globally start a helper function -
i want test console errors in application?
i know how them using
browser.manage().logs().get('browser').then(function(browserlog) {})
in aftereach()
what want achieve want use globally. in, don't want call helper function in every spec. want run default when start config file , detect if errors appear in console.
as @tehbeardedone suggested in comments above, can using oncomplete()
function of config file.
oncomplete: function () { browser.manage().logs().get('browser').then(function(browserlog) { console.log(browserlog); }); }
https://github.com/angular/protractor/blob/master/lib/config.ts
Comments
Post a Comment