public class CheckBoxButtonGroup extends GroupComponent<CheckBox> implements FillableComponent<Set<Enum>>
@ElementAccessor(elementName="marital status", byName = "radio_4")
private RadioButtonGroup maritalStatus;
Example usage binding by xpath:
@ElementAccessor(elementName="marital status", byXPath = "/select[@type='radio' and @name='radio_4']")
private RadioButtonGroup maritalStatus;
webElement| Constructor and Description |
|---|
CheckBoxButtonGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
fill(Set<Enum> values)
Fills the component with data.
|
List<String> |
getValues()
Gets all values from Radio Buttons in group.
|
void |
selectByIndex(int index)
Selects a Radio Button by index.
|
void |
selectByValue(String value)
Selects a Radio Button by value.
|
findElement, get, getAll, setItemType, sizefind, findAll, findElements, getBrowser, getHtmlElement, getLocator, getLogger, getName, getParent, isAlive, isDisplayed, isEnabled, setBrowser, setLocator, setName, setParent, setWebElement, toStringpublic List<String> getValues()
public void selectByValue(String value)
value - - value to be selectedNoSuchElementException - - if value is not present in grouppublic void selectByIndex(int index)
index - - zero based index to be selectedIndexOutOfBoundsException - - if index is outside the bounds of the grouppublic void fill(Set<Enum> values)
FillableComponentfill in interface FillableComponent<Set<Enum>>values - - data to fill inCopyright © 2020. All rights reserved.