title: protractor get url after click()
body: <p>i'm new with protractor.. i need you'r help..
  my code go like this..</p>
  
  <pre><code>describe('Protractor Demo Charts', function () {
             var url = 'https://angularjs.org/';
  
  
  it('should get the value of attribute d', function () {
      browser.get(url);
      element(by.css('.btn-warning')).click().then(function(text){
  
          expect(browser.getCurrentUrl()).toContain('0BxgtL8yFJbacQmpCc1NMV3d5dnM');
          }
  
      );
  
  });
  </code></pre>
  
  <p>});</p>
  
  <p>my problem is that browser.getCurrentUrl() still return me the base url (the page that i came from '<a href="https://angularjs.org/" rel="nofollow">https://angularjs.org/</a>' )</p>
  
  <p>how can i get the new Url (the URL <strong>AFTER</strong> the click )?</p>