appium-uiauto
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "appium-uiauto", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "appium uiauto ios driver", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -24,3 +24,3 @@ /* globals $ */ | ||
it('should not return duplicate text fields', function () { | ||
it('should not return duplicate UIATextField', function () { | ||
return ctx.execFunc( | ||
@@ -40,4 +40,20 @@ function () { | ||
it('should not return duplicate UIASecureTextField', function () { | ||
return ctx.execFunc( | ||
function () { | ||
rootPage.clickMenuItem('Text Fields'); | ||
$.delay(2000); | ||
var cell = $('#Empty list').children('cell')[2]; | ||
$(cell).logTree(); | ||
var id = '' + $.getId(cell); | ||
var res = $.getElementsByType('UIASecureTextField', id); | ||
return res; | ||
} | ||
).then(function (res) { | ||
res.should.have.length(1); | ||
}); | ||
}); | ||
}); | ||
}); |
@@ -8,3 +8,3 @@ /* globals $ */ | ||
var isDuplicate = false; | ||
if (type === 'textfield' || type === 'UIATextField') { | ||
if (type.match(/textfield$/i)) { | ||
// fixing duplicated text fields | ||
@@ -11,0 +11,0 @@ $.each(current.elements(), function (idx, child) { |
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
13344190
3377