angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Debuggability: Errors thrown while waiting for Protractor to sync are unhelpful #1474

Closed juliemr closed 9 years ago

juliemr commented 9 years ago

The error 'Uncaught exception: Error while waiting for Protractor to sync with the page: {}' is unhelpful. We should try to provide more info about the various root causes.

naterkane commented 9 years ago

:+1: I just ran into this myself, and have no clue what could have caused it.

juliemr commented 9 years ago

The commit above partially addresses this problem. The error is still pretty obtuse if you are using Angular 1.3 and your root element is outside of the Angular world. That will require a change to Angular - will submit a PR and link here.

juliemr commented 9 years ago

Better error messages are in Angular/master, will be out in the next 1.3 release.