Package com.hp.lft.sdk.java
Interface Slider
- All Superinterfaces:
Clickable
,DoubleClickable
,EnabledProvider
,LocationInfoProvider
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,UiObjectBase
,VisibleProvider
,WaitUntilEnabledProvider
,WaitUntilVisibleProvider
A Java slider.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the text of the slider object's container.int
Returns the maximum position of the slider.int
Returns the minimum position of the slider.Returns the orientation of the slider.int
Returns the position of the slider.boolean
Indicates whether slider is a scrollBar.void
nextLine()
Moves the slider downward, or to the right, by one line.void
nextLine
(int numberOfLines) Moves the slider downward, or to the right, the specified number of lines.void
Moves the slider upward, or to the left, by one line.void
previousLine
(int numberOfLines) Moves the slider upward, or to the left, the specified number of lines.void
setPosition
(int position) Sets the position of the slider.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClick
Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeys
Methods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisible
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
getContainerAttachedText
Returns the text of the slider object's container.- Returns:
- the container's text.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getOrientation
Returns the orientation of the slider.- Returns:
- a value of the
SliderOrientation
enum. - Throws:
GeneralLeanFtException
- if error occurs during execution
-
getPosition
Returns the position of the slider.- Returns:
- the position of the slider.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setPosition
Sets the position of the slider.- Parameters:
position
- the position of the slider.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getMaxPosition
Returns the maximum position of the slider.- Returns:
- the maximum position of the slider.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getMinPosition
Returns the minimum position of the slider.- Returns:
- the minimum position of the slider.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
nextLine
Moves the slider downward, or to the right, the specified number of lines.- Parameters:
numberOfLines
- the number of lines to move the slider.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
nextLine
Moves the slider downward, or to the right, by one line.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
previousLine
Moves the slider upward, or to the left, the specified number of lines.- Parameters:
numberOfLines
- the number of lines to move the slider.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
previousLine
Moves the slider upward, or to the left, by one line.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isScrollBar
Indicates whether slider is a scrollBar.- Returns:
- true if slider is a scrollBar.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-