@bbc/nightwatch-commands
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -10,7 +10,7 @@ exports.command = function (selectors) { | ||
selectors.forEach (function (selector) { | ||
try{ | ||
try { | ||
var regex = new RegExp(selector + '\/[0-9]*.[0-9]*.[0-9]*-?[0-9]*', 'gmi'); | ||
console.log(result.value.match(regex)[0]); | ||
} catch (e) { | ||
console.log('The', selector, 'version number could not be found. \033[0m\033[1;33mAre you running Chrome Headless?'); | ||
console.log('The', selector, 'version number could not be found. \033[0m\033[1;33mAre you running Chrome Headless?\u001b[0m'); | ||
} | ||
@@ -17,0 +17,0 @@ }); |
{ | ||
"name": "@bbc/nightwatch-commands", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Basic Nightwatch Commands", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7363