Is there a better way to wait until all page is loaded,
my angular pages are loaded with promise, it means that if all ajaxs call haven't ended yet there is a loader on the screen.
i'm currently using ptor.sleep(10000), like in the following example:
beforeEach(function(){
    ptor = protractor.getInstance();
    driver = ptor.driver;
    ptor.get(base_url);
    ptor.sleep(10000);
});
is there a better way to do it?