appium-uiauto
Advanced tools
Comparing version 1.7.6 to 1.7.7
{ | ||
"name": "appium-uiauto", | ||
"version": "1.7.6", | ||
"version": "1.7.7", | ||
"description": "appium uiauto ios driver", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -97,6 +97,6 @@ /* globals $ */ | ||
var weighting = [ | ||
'secureTextFields' | ||
, 'textFields' | ||
, 'buttons' | ||
, 'elements' | ||
'secureTextFields' | ||
, 'textFields' | ||
, 'buttons' | ||
, 'elements' | ||
]; | ||
@@ -147,3 +147,3 @@ var elems = this._elementOrElementsWithPredicateWeighted(predicate, | ||
// match, keep looking. Otherwise exit the loop. | ||
if (onlyFirst || results.length > 0) break; | ||
if (onlyFirst && results.length > 0) break; | ||
} | ||
@@ -150,0 +150,0 @@ |
@@ -8,10 +8,14 @@ /* globals $, STATUS */ | ||
, _defaultContext: function (ctx) { | ||
if (typeof ctx === 'string') { | ||
return this.cache[ctx]; | ||
} else if (typeof ctx !== 'undefined') { | ||
return ctx; | ||
} else { | ||
return $.mainApp(); | ||
if (typeof ctx === 'string') { | ||
var el = this.cache[ctx]; | ||
if (el.isNil()) { | ||
throw new STATUS.StaleElementReference("Context element was nil"); | ||
} | ||
return el; | ||
} else if (typeof ctx !== 'undefined') { | ||
return ctx; | ||
} else { | ||
return $.mainApp(); | ||
} | ||
} | ||
} | ||
@@ -18,0 +22,0 @@ , convertSelector: function (selector) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances 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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 13 instances in 1 package
3600
110
13420422
161