I have a problem with my Protractor tests. The angular app uses $ timeout to continuously poll something from the server. Unfortunately, this leads to the following error message when I run my tests:
There was a webdriver error: Error Timed out waiting for Protractor to synchronize with the page after 11 seconds. Please see https:
tor/blob/master/docs/faq.md
How can I handle such continuous polling timeouts? Installing browser.ignoreSynchronizationin is falsenot a good solution in my case (when I do this, I need to insert a lot browser.sleep())
Switching from $ timeout to $ interval, as suggested here , is currently not possible in my application. Increasing the timeout is also impossible (since I said that the service constantly polls from the server)
Is it possible to change the procedure waitForAngularso that my test is not a timeout?
Any help would be greatly appreciated.
source
share