I'm using protractor to test my angular application.
I want to show the current URL when a console.log is show in the browser.
I use this for now but I don't find the solution to show the current URL.
afterEach(function() {
  browser.manage().logs().get('browser').then(function(browserLog){
    var message = JSON.parse(browserLog[i].message).message.parameters[0].value;
    expect(message.indexOf("localizationService") > -1).toBe(false, 'because\n There is a I18N error somewhere.\n Please see the error above in\n >>ERROR I18Ns : \n' + message + '\n' + browser.getCurrentUrl());
  }
}
I just need to know what I have to use instead of browser.getCurrentUrl() which is returning a Promise
 
    