public class UiSlider extends UiObject implements MobileSlider
UiSlider
represents a Slider widget for Android UI automation framework.Modifier and Type | Method and Description |
---|---|
void |
dragToValue(double value)
it is not accurate and is best to used only for setting value to 0 or 1, otherwise the result is close to parameter
|
clearText, click, clickBottomRight, clickTopLeft, findElement, getBridgeDriver, getLocator, getText, getValue, isCheckable, isChecked, isClickable, isEnabled, isFocusable, isFocused, isLongClickable, isScrollable, isSelected, longClick, longClickBottomRight, longClickTopLeft, setText, swipeDown, swipeLeft, swipeRight, swipeUp, tap, waitFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findElement, getLocator, getValue, tap
public UiSlider(String locator)
public void dragToValue(double value)
dragToValue
in interface MobileSlider
value
- The desired decimal value from 0 to 1, inclusive. 0 represents far left and 1 represent far right.Copyright © 2016 PayPal Open Source. All rights reserved.