title: Protractor not waiting for page load
body: <p>I created a basic test with protractor to click on a element and on the new page check if given element exists, but Protractor does not seem to wait and it runs the assertion just after the click but before the new page loads. The element I am looking for is available on both pages, so protractor sees the element on the old page, before the new page loads. Can someone please tell me what am I doing wrong?</p>
  
  <pre><code>it('should check when new page is loaded', function () {
  button.click().then(function (){
      return expect(newElement).to.exist;
  });
  </code></pre>