support setting value through sendKeys for more types

This commit is contained in:
Jonathan Lipps
2013-09-04 17:56:27 -07:00
parent e06f798297
commit d0989ebfea
+4
View File
@@ -68,6 +68,10 @@ UIAElement.prototype.setValueByType = function(newValue) {
au.sendKeysToActiveElement(newValue);
} else if (type === "UIAPickerWheel") {
this.selectValue(newValue);
} else if (type === "UIASlider") {
this.dragToValue(parseFloat(newValue));
} else if (type === "UIAPageIndicator") {
this.selectPage(parseInt(newValue, 10));
} else {
this.setValue(newValue);
}