angular / protractor

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

Error while waiting for Protractor to sync with the page: {} when using shardTestFiles #1509

Closed lefos987 closed 9 years ago

lefos987 commented 9 years ago

Hi!

In my capabilities I have the following: capabilities: { browserName: 'chrome', shardTestFiles: true, maxInstances: 2 } For simplicity reasons, I just test two specs: ['a.e2e.js', 'b.e2e.js'] When I run protractor one of the tests always fails immediately with the following error: Error while waiting for Protractor to sync with the page: {}

The other test goes on and runs as expected. Any ideas? Thank you!

juliemr commented 9 years ago

For the error, we'd like to make this easier to debug: https://github.com/angular/protractor/issues/1509

As for what's causing it, it's impossible for me to say without more information about your application. All it means is that there's a javascript error being thrown in the browser. Do your tests run correctly without sharding? Does one test file rely on the other in some implicit way?

hankduan commented 9 years ago

Closing as inactive. Please open another issue if you think this is a bug, or ask on stack overflow.