From f3b3fdbcbc8fe4f3c5915ef0f6eb7c89e339a62e Mon Sep 17 00:00:00 2001 From: Julie Date: Mon, 18 Nov 2013 15:33:30 -0800 Subject: [PATCH] fix(element): fix an error where all.then() wasn't calling callbacks. Closes #267 --- lib/protractor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/protractor.js b/lib/protractor.js index fedafa531..e12b28097 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -109,8 +109,8 @@ var buildElementHelper = function(ptor) { return new webdriver.WebElement(ptor.driver, id); }; - elementArrayFinder.then = function() { - return ptor.findElements(locator); + elementArrayFinder.then = function(fn) { + return ptor.findElements(locator).then(fn); }; return elementArrayFinder;