mirror of
https://github.com/appium/appium.git
synced 2026-05-19 18:09:14 -05:00
support setting value through sendKeys for more types
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user