-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Some screens require waitForAngularEnabled(false) to work properly, even though whole app is angular #5315
Comments
Protractor requires
to return true. Ensure that Your app is stable. Check out this page for the details: https://www.protractortest.org/#/timeouts#timeouts-from-protractor |
I'll do some research and report back with my findings. Thank you, baflQA. |
Ever run into this? |
If angular says that there are the macrotasks Pending, then trust me, they are there even If developers say the opposite. |
Simple way to check is put a break on ngzone
https://stackoverflow.com/questions/48627074/how-to-track-which-async-tasks-protractor-is-waiting-on I am having the same issue, except I know it is caused by requestAnimationFrame and a setTimeout, but both are critical to my project, atleast RAF is. |
For some reason, certain pages (screens) in my angular app aren't respected as angular, and the only way to get protractor to interact with elements on these screens is to set waitForAngularEnabled(false). This then creates flaky tests and requires all kinds of ugly browser.waits. Anyone else ever experienced this or know how to resolve it?
Bug report
12.3.1
5.4.2
7.2.3
Chrome
Windows 10
conf file
code example
In this code example, util.loadApp will simply navigate to the URL. The login page / screen will work just fine as well. The setup page / screen will also work, however once it reaches the last screen to run to app, protractor can no longer interact with elements from this point on unless waitForAngularEnabled(false). This causes a problem because it forces me to use ugly waits and removes the whole benefit of using protractor in the first place.
Does anyone have any idea what could cause protractor not recognize some screens as angular and others as non-angular?
The text was updated successfully, but these errors were encountered: