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

Commit

Permalink
fix(locators): Improve custom locators message
Browse files Browse the repository at this point in the history
Increase readability of custom locator message by displaying each argument instead of the arguments object.
  • Loading branch information
bcaudan authored and juliemr committed Apr 2, 2014
1 parent c9dbbaa commit 1334662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/locators.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ProtractorBy.prototype.addLocator = function(name, script) {
return driver.findElements(
webdriver.By.js.apply(webdriver.By, findElementArguments));
},
message: 'by.' + name + '("' + locatorArguments + '")'
message: 'by.' + name + '("' + Array.prototype.join.call(locatorArguments, '", "') + '")'
};
};
};
Expand Down

0 comments on commit 1334662

Please sign in to comment.