appium-uiauto
Advanced tools
Comparing version 1.7.13 to 1.7.14
{ | ||
"name": "appium-uiauto", | ||
"version": "1.7.13", | ||
"version": "1.7.14", | ||
"description": "appium uiauto ios driver", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -16,2 +16,7 @@ /* globals $ */ | ||
var numTypes = typeArray.length; | ||
// allow '*' to match on all types. | ||
var allTypes = false; | ||
if (numTypes === 1 && typeArray[0] === '*') allTypes = true; | ||
onlyFirst = onlyFirst === true; | ||
@@ -61,10 +66,13 @@ onlyVisible = onlyVisible !== false; | ||
for (var i = 0; i < numTypes; i++) { | ||
if (elType === typeArray[i]) { | ||
if (allTypes || elType === typeArray[i]) { | ||
if (!onlyVisible || visible) { | ||
// if an object isn't provided then it's a match. | ||
var nameMatch = nameObject ? attributeMatch(element.name(), nameObject) : true; | ||
var labelMatch = labelObject ? attributeMatch(element.label(), labelObject) : true; | ||
var valueMatch = valueObject ? attributeMatch(element.value(), valueObject) : true; | ||
var nameMatch = nameObject ? attributeMatch(element.name(), nameObject) : false; | ||
var labelMatch = labelObject ? attributeMatch(element.label(), labelObject) : false; | ||
var valueMatch = valueObject ? attributeMatch(element.value(), valueObject) : false; | ||
if (nameMatch && labelMatch && valueMatch && element.checkIsValid()) { | ||
// If we're only searching for a type then skip attribute matching. | ||
if (!nameObject && !labelObject && !valueObject) nameMatch = true; | ||
if (element.checkIsValid() && (nameMatch || labelMatch || valueMatch)) { | ||
elems.push(element); | ||
@@ -204,2 +212,2 @@ } | ||
})(); | ||
})(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13583939
3642