Package com.hp.lft.sdk.web
Interface RadioGroup
- All Superinterfaces:
Clickable
,EnabledProvider
,LocationInfoProvider
,SupportDragAndDrop
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,VisibleProvider
,WaitUntilEnabledProvider
,WaitUntilVisibleProvider
,WebElement
,WebTestObject
,WebTestObjectDescriber
A set of Web radio buttons belonging to the same group.
-
Method Summary
Modifier and TypeMethodDescriptiongetItems()
Returns the list of all items contained in the object.int
Returns the index of the selected item in the radio group (or -1 if none is selected).Returns the currently selected item (or null if none is selected).getType()
Returns the type of object as defined in the HTML input tag.boolean
Return whether an item in the group is selected.void
select
(int itemIndex) Selects the specified radio button from the radio group, replacing the previous selection.void
Selects the specified radio button from the radio group, replacing the previous selection.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.SupportDragAndDrop
dragAndDropOn, dragAndDropOn
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.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
Methods inherited from interface com.hp.lft.sdk.web.WebElement
doubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipe
Methods inherited from interface com.hp.lft.sdk.web.WebTestObject
getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisible
Methods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber
describe, describe
-
Method Details
-
getType
Returns the type of object as defined in the HTML input tag.- Returns:
- the type of object as defined in the HTML input tag.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectedItem
Returns the currently selected item (or null if none is selected).- Returns:
- the currently selected item (or null if none is selected).
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectedIndex
Returns the index of the selected item in the radio group (or -1 if none is selected).- Returns:
- the index of the selected item in the radio group (or -1 if none is selected).
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
hasSelectedItem
Return whether an item in the group is selected.- Returns:
- True, if an item in the group is selected.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the specified radio button from the radio group, replacing the previous selection.- Parameters:
item
- the item to select.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects the specified radio button from the radio group, replacing the previous selection.- Parameters:
itemIndex
- the index of the item to select.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getItems
Returns the list of all items contained in the object.- Returns:
- the list of all items contained in the object.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-