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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -