angular / protractor

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

Issue with button click and page reload #2353

Closed vsathyak closed 9 years ago

vsathyak commented 9 years ago

@juliemr , @hankduan

In the app which I am working, after clicking on a button, its taking me to a new angular page and the dev people designed in a way that while opening the new page,angular stuff is reloaded. So for a moment protractor didn't get the angular stuff and it will throw the following error : Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window" .

Here is my click method. this.openSearchedDeviceCard = function () { element(by.xpath("//div[@class='card card--default']/descendant::h6[1]/a")).click(); //browser.sleep(5000); };

Please let me know if there is any work around other that using browser.sleep(5000);

sjelin commented 9 years ago

We're working on it. Still thinking about the ideal solution tbh