protractor
Advanced tools
Comparing version 4.0.12 to 4.0.13
@@ -583,14 +583,3 @@ /// <reference types="selenium-webdriver" /> | ||
elementArrayFinder_: ElementArrayFinder; | ||
/** | ||
* Access the underlying actionResult of ElementFinder. | ||
* | ||
* @alias element(locator).then(thenFunction) | ||
* @param {function(webdriver.promise.Promise)} fn Function which takes | ||
* the value of the underlying actionResult. | ||
* @param {function(Error)} errorFn | ||
* | ||
* @returns {webdriver.promise.Promise} Promise which contains the results | ||
* of evaluating fn. | ||
*/ | ||
then(fn: Function, errorFn?: Function): wdpromise.Promise<any>; | ||
then: (fn: Function, errorFn?: Function) => wdpromise.Promise<any>; | ||
constructor(browser_: ProtractorBrowser, elementArrayFinder: ElementArrayFinder); | ||
@@ -597,0 +586,0 @@ [key: string]: any; |
@@ -782,2 +782,3 @@ "use strict"; | ||
_this.browser_ = browser_; | ||
_this.then = null; | ||
if (!elementArrayFinder) { | ||
@@ -790,2 +791,3 @@ throw new Error('BUG: elementArrayFinder cannot be empty'); | ||
if (_this.parentElementArrayFinder.actionResults_) { | ||
// Access the underlying actionResult of ElementFinder. | ||
_this.then = | ||
@@ -834,16 +836,2 @@ function (fn, errorFn) { | ||
} | ||
/** | ||
* Access the underlying actionResult of ElementFinder. | ||
* | ||
* @alias element(locator).then(thenFunction) | ||
* @param {function(webdriver.promise.Promise)} fn Function which takes | ||
* the value of the underlying actionResult. | ||
* @param {function(Error)} errorFn | ||
* | ||
* @returns {webdriver.promise.Promise} Promise which contains the results | ||
* of evaluating fn. | ||
*/ | ||
ElementFinder.prototype.then = function (fn, errorFn) { | ||
return null; | ||
}; | ||
ElementFinder.fromWebElement_ = function (browser, webElem, locator) { | ||
@@ -850,0 +838,0 @@ var getWebElements = function () { |
@@ -77,3 +77,3 @@ { | ||
}, | ||
"version": "4.0.12" | ||
"version": "4.0.13" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
614889
12165