I have a regression suite automated using Protractor & Jasmine. Application under test recently became hybrid application, bootstrapped with NgUpgrade.
after the upgrade, scripts are timing out in accessing some of the elements. I have added below script to override the waitforAngular function which is the fix for time out issue. However this will not work for login (non angular page)I need to revert this override for non-angular page. wondering if anyone can provide any help on this
**var script = "var callback = arguments[arguments.length - 1];" +
"angular.element(document.querySelector(\"body\")).injector()" +
".get(\"$browser\").notifyWhenNoOutstandingRequests(callback)";
browser.waitForAngular = ()=> {
return browser.executeAsyncScript(script);
}**