Package FlaNium.WinAPI.elements
Class Slider
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- FlaNium.WinAPI.DesktopElement
-
- FlaNium.WinAPI.elements.Slider
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver
public class Slider extends DesktopElement
-
-
Constructor Summary
Constructors Constructor Description Slider(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ButtongetLargeDecreaseButton()ButtongetLargeIncreaseButton()ThumbgetThumb()doublegetValue()Gets the current value.booleanisOnlyValue()Flag which indicates if the "Slider" supports range values (min-max) or only values (0-100).doublelargeChange()voidlargeDecrement()Performs a large decrement.voidlargeIncrement()Performs a large increment.doublemaximum()doubleminimum()voidsetValue(double value)Sets the current value.doublesmallChange()voidsmallDecrement()Performs a small decrement.voidsmallIncrement()Performs a small increment.-
Methods inherited from class FlaNium.WinAPI.DesktopElement
callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callVoidCommand, castTo, createLocalDateTimeFromResponse, createRemoteWebElementFromResponse, createRemoteWebElementsFromResponse, exe, execute, getActiveWindow, getAttribute, getElementRect, getName, mouseActions, parseDateTime, parseDouble, screenshotActions, setAsRootElement, toCoordinateElement, touchActions
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, click, equals, execute, findElement, findElement, findElements, findElements, getAccessibleName, getAriaRole, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
-
-
-
-
Method Detail
-
minimum
public double minimum()
- Returns:
- The minimum value.
-
maximum
public double maximum()
- Returns:
- The maximum value.
-
smallChange
public double smallChange()
- Returns:
- The value of a small change.
-
largeChange
public double largeChange()
- Returns:
- The value of a large change.
-
getLargeIncreaseButton
public Button getLargeIncreaseButton()
- Returns:
- The button element used to perform a large increment.
-
getLargeDecreaseButton
public Button getLargeDecreaseButton()
- Returns:
- The button element used to perform a large decrement.
-
getThumb
public Thumb getThumb()
- Returns:
- The element used to drag.
-
isOnlyValue
public boolean isOnlyValue()
Flag which indicates if the "Slider" supports range values (min-max) or only values (0-100). Only values are for example used when combining UIA3 and WinForms applications.- Returns:
-
getValue
public double getValue()
Gets the current value.- Returns:
-
setValue
public void setValue(double value)
Sets the current value.- Parameters:
value-
-
smallIncrement
public void smallIncrement()
Performs a small increment.
-
smallDecrement
public void smallDecrement()
Performs a small decrement.
-
largeIncrement
public void largeIncrement()
Performs a large increment.
-
largeDecrement
public void largeDecrement()
Performs a large decrement.
-
-