Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit f3b3fdb

Browse files
committed
fix(element): fix an error where all.then() wasn't calling callbacks.
Closes #267
1 parent 26823e9 commit f3b3fdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/protractor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ var buildElementHelper = function(ptor) {
109109
return new webdriver.WebElement(ptor.driver, id);
110110
};
111111

112-
elementArrayFinder.then = function() {
113-
return ptor.findElements(locator);
112+
elementArrayFinder.then = function(fn) {
113+
return ptor.findElements(locator).then(fn);
114114
};
115115

116116
return elementArrayFinder;

0 commit comments

Comments
 (0)