Protractor- switch from non- angular to angular
Login page is non- angular. So I set
browser.ignoreSynchronization = true;Then after passing the login screen, I have set
browser.ignoreSynchronization = false. Also, I have used
browser.refresh(). While execution, I see all the steps executed, but shows error message as timeout after 11 seconds.
You can use
browser.ignoreSynchronization=trueentirely for angular/non-angular pages and use your own wait mechanism using
ExpectedConditionsto handle elements.
Either way is using driver methods directly as below, so it won't wait for $http and $timeout
Please let me know if you need more help and upvote this answer if you find it helpful