This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 1 file changed +2
-15
lines changed
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -787,21 +787,7 @@ export class ElementArrayFinder extends WebdriverWebElement {
787
787
export class ElementFinder extends WebdriverWebElement {
788
788
parentElementArrayFinder : ElementArrayFinder ;
789
789
elementArrayFinder_ : ElementArrayFinder ;
790
-
791
- /**
792
- * Access the underlying actionResult of ElementFinder.
793
- *
794
- * @alias element(locator).then(thenFunction)
795
- * @param {function(webdriver.promise.Promise) } fn Function which takes
796
- * the value of the underlying actionResult.
797
- * @param {function(Error) } errorFn
798
- *
799
- * @returns {webdriver.promise.Promise } Promise which contains the results
800
- * of evaluating fn.
801
- */
802
- then ( fn : Function , errorFn ?: Function ) : wdpromise . Promise < any > {
803
- return null ;
804
- }
790
+ then : ( fn : Function , errorFn ?: Function ) => wdpromise . Promise < any > = null ;
805
791
806
792
constructor ( public browser_ : ProtractorBrowser , elementArrayFinder : ElementArrayFinder ) {
807
793
super ( ) ;
@@ -813,6 +799,7 @@ export class ElementFinder extends WebdriverWebElement {
813
799
// Only have a `then` method if the parent element array finder
814
800
// has action results.
815
801
if ( this . parentElementArrayFinder . actionResults_ ) {
802
+ // Access the underlying actionResult of ElementFinder.
816
803
this . then =
817
804
( fn : ( value : any ) => { } | wdpromise . IThenable < { } > , errorFn ?: ( error : any ) => any ) => {
818
805
return this . elementArrayFinder_ . then ( ( actionResults : any ) => {
You can’t perform that action at this time.
0 commit comments