Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout::Error: timeout while waiting for angular occurring in my application. #20

Open
jhubbardsf opened this issue Jun 22, 2015 · 4 comments

Comments

@jhubbardsf
Copy link

I'm seeing other people used to have this issue, then it was supposedly fixed in 0.1.0 and then reintroduced in 0.1.1. But even downgrading to 0.1.0 doesn't stop it from occurring. It fails at the very first expect and raising the timeout doesn't fix it either.

@fatbeard2
Copy link

I had the same issue when some of libraries where setting $timeouts for some time in future. Angular was treating this as if some actions were still in progress and capybara-angular eventually timed out. Same behavior might occur if you have pending $http request. Here is from protractor docs
Before performing any action, Protractor asks Angular to wait until the page is synchronized. This means that all timeouts and http requests are finished. If your application continuously polls $timeout or $http, it will never be registered as completely loaded. You should use the $interval service (interval.js) for anything that polls continuously (introduced in Angular 1.2rc3).

@garettarrowood
Copy link

Thank you @fatbeard2! That fixed this issue for me.

@ehannes
Copy link

ehannes commented May 11, 2016

I get the same error, but I don't have any continuously polls as I know of.

@avegancafe
Copy link

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants