diff --git a/app/uiauto/appium/element.js b/app/uiauto/appium/element.js index dbd7eac95..f014185c1 100644 --- a/app/uiauto/appium/element.js +++ b/app/uiauto/appium/element.js @@ -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); }