mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 09:19:08 +00:00
Merge pull request #1915 from panuhorsmalahti/master
Update angular-protractor.d.ts
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
4
angular-protractor/angular-protractor.d.ts
vendored
4
angular-protractor/angular-protractor.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user