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, '", "') + '")' }; }; };