Merge pull request #1915 from panuhorsmalahti/master

Update angular-protractor.d.ts
This commit is contained in:
Masahiro Wakame
2014-04-01 10:43:30 +09:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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');
}
}

View File

@@ -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;
}
}