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

Commit

Permalink
fix(element): fix an error where all.then() wasn't calling callbacks.
Browse files Browse the repository at this point in the history
Closes #267
  • Loading branch information
juliemr committed Nov 18, 2013
1 parent 26823e9 commit f3b3fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3b3fdb

Please sign in to comment.