From d0989ebfeae0414e296efe646ddedc778d33d99f Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Wed, 4 Sep 2013 17:56:27 -0700 Subject: [PATCH] support setting value through sendKeys for more types --- app/uiauto/appium/element.js | 4 ++++ 1 file changed, 4 insertions(+) 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); }