From 1334662905d8d6b642a294fbf1e97ec3bc371084 Mon Sep 17 00:00:00 2001 From: bcaudan Date: Tue, 1 Apr 2014 13:55:23 +0200 Subject: [PATCH] fix(locators): Improve custom locators message Increase readability of custom locator message by displaying each argument instead of the arguments object. --- lib/locators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locators.js b/lib/locators.js index 044856b87..2cd63646b 100644 --- a/lib/locators.js +++ b/lib/locators.js @@ -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, '", "') + '")' }; }; };