I have seen [this](https://stackoverflow.com/questions/29129186/how-to-use-browser-getcurrenturl-in-a-protractor-test) question, and read [this](https://www.protractortest.org/#/api?view=webdriver.WebDriver.prototype.getCurrentUrl) documentation, but still i cannot get the url as `string` value.

I know that in `protractor`, you should use the below code to get `url`:

```
import {browser} from 'protractor'
browser.waitForAngular();    
var url = browser.getCurrentUrl()
console.log("URL is: "+url);

```

But, when i run the code in the console i have:

```
URL is: ManagedPromise::253 {[[PromiseStatus]]: "pending"}

```

Also, the documentation specifies that the result of function is ***a promise that will be resolved with the current URL.***

But, i am wondering, why i am not able to get it as a string?