browser-monkey
Advanced tools
Comparing version 1.15.1 to 1.15.2
@@ -228,5 +228,6 @@ var retry = require('trytryagain'); | ||
var found = findElements.find(elements); | ||
return found.toArray().filter(function (element) { | ||
var tested = found.toArray().filter(function (element) { | ||
try { | ||
return testElements.find(element); | ||
testElements.find(element); | ||
return true; | ||
} catch (error) { | ||
@@ -236,2 +237,6 @@ return false; | ||
}); | ||
if (tested.length > 0) { | ||
return tested; | ||
} | ||
} | ||
@@ -238,0 +243,0 @@ } |
{ | ||
"name": "browser-monkey", | ||
"version": "1.15.1", | ||
"version": "1.15.2", | ||
"description": "reliable dom testing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
46792
945