appium-uiauto
Advanced tools
Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "appium-uiauto", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "appium uiauto ios driver", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -81,9 +81,15 @@ /* globals $, ERROR */ | ||
}.bind(this); | ||
try { | ||
var viewEl = this.getElementByType('scrollview'); | ||
return doScroll(viewEl); | ||
} catch (err) { | ||
viewEl = this.getElementByType('tableview'); | ||
return doScroll(viewEl); | ||
var scrollTypes = ['scrollview', 'tableview', 'collection']; | ||
var viewEl; | ||
for (var i = 0; i < scrollTypes.length; i++) { | ||
$.debug("Looking for view of type " + scrollTypes[i]); | ||
viewEl = this.getElementByType(scrollTypes[i]); | ||
if (viewEl) { | ||
break; | ||
} | ||
} | ||
if (!viewEl || viewEl.isNil()) { | ||
throw new Error("Couldn't find an initial view to scroll"); | ||
} | ||
doScroll(viewEl); | ||
} | ||
@@ -90,0 +96,0 @@ |
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 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
13563104
168
3572
117