diff --git a/angular-protractor/angular-protractor-tests.ts b/angular-protractor/angular-protractor-tests.ts index 2c8e72f07d..2ed627af84 100644 --- a/angular-protractor/angular-protractor-tests.ts +++ b/angular-protractor/angular-protractor-tests.ts @@ -167,7 +167,7 @@ function TestProtractor() { var webElement: webdriver.WebElement = ptor.wrapWebElement(new webdriver.WebElement(driver, 'id')); - var locationAbsUrl: string = ptor.getLocationAbsUrl(); + var locationAbsUrl: webdriver.promise.Promise = ptor.getLocationAbsUrl(); } function TestElement() { @@ -239,4 +239,4 @@ function TestWebElements() { webElement = webElement.findElement(by.id('id')).$('.class'); promise = webElement.findElement(by.id('id')).$$('.class'); promise = webElement.findElement(by.id('id')).evaluate('something'); -} \ No newline at end of file +} diff --git a/angular-protractor/angular-protractor.d.ts b/angular-protractor/angular-protractor.d.ts index 951ba85de9..a78fc42f36 100644 --- a/angular-protractor/angular-protractor.d.ts +++ b/angular-protractor/angular-protractor.d.ts @@ -772,7 +772,7 @@ declare module protractor { /** * Returns the current absolute url from AngularJS. */ - getLocationAbsUrl(): string; + getLocationAbsUrl(): webdriver.promise.Promise; /** * Pauses the test and injects some helper functions into the browser, so that @@ -865,4 +865,4 @@ declare var element: protractor.Element; declare module 'protractor' { export = protractor; -} \ No newline at end of file +}