Class SelectOneRadio
- java.lang.Object
-
- org.primefaces.selenium.AbstractPrimePageFragment
-
- org.primefaces.selenium.component.base.AbstractComponent
-
- org.primefaces.selenium.component.SelectOneRadio
-
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
public abstract class SelectOneRadio extends AbstractComponent
Component wrapper for the PrimeFacesp:selectOneRadio.
-
-
Constructor Summary
Constructors Constructor Description SelectOneRadio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()Disables the entire component.voiddisableOption(int index)Disables a given radio button option of this widget.voidenable()Enables the entire componentvoidenableOption(int index)Enables a given radio button option of this widget.List<SelectItem>getItems()intgetItemsSize()StringgetLabel(int index)List<String>getLabels()org.openqa.selenium.WebElementgetRadioButton(int index)org.openqa.selenium.WebElementgetRadioButtonBox(int index)List<org.openqa.selenium.WebElement>getRadioButtons()intgetSelectedIndex()StringgetSelectedLabel()voidselect(int index)voidselect(String text)-
Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxified
-
Methods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriver
-
-
-
-
Method Detail
-
getRadioButtons
public List<org.openqa.selenium.WebElement> getRadioButtons()
-
getRadioButton
public org.openqa.selenium.WebElement getRadioButton(int index)
-
getRadioButtonBox
public org.openqa.selenium.WebElement getRadioButtonBox(int index)
-
select
public void select(int index)
-
select
public void select(String text)
-
getSelectedIndex
public int getSelectedIndex()
-
getSelectedLabel
public String getSelectedLabel()
-
getLabel
public String getLabel(int index)
-
getItemsSize
public int getItemsSize()
-
getItems
public List<SelectItem> getItems()
-
disable
public void disable()
Disables the entire component.
-
enable
public void enable()
Enables the entire component
-
disableOption
public void disableOption(int index)
Disables a given radio button option of this widget.- Parameters:
index- Index of the radio button option to disable.
-
enableOption
public void enableOption(int index)
Enables a given radio button option of this widget.- Parameters:
index- Index of the radio button option to enable.
-
-