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
Component wrapper for the PrimeFaces
p:selectOneRadio.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()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.getItems()intgetLabel(int index) org.openqa.selenium.WebElementgetRadioButton(int index) org.openqa.selenium.WebElementgetRadioButtonBox(int index) List<org.openqa.selenium.WebElement>intbooleanIs this component readonly?voidselect(int index) voidMethods inherited from class org.primefaces.selenium.component.base.AbstractComponent
destroy, getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxifiedMethods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
-
Constructor Details
-
SelectOneRadio
public SelectOneRadio()
-
-
Method Details
-
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
-
getSelectedIndex
public int getSelectedIndex() -
getSelectedLabel
-
getLabels
-
getLabel
-
getItemsSize
public int getItemsSize() -
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.
-
isReadOnly
public boolean isReadOnly()Is this component readonly?- Returns:
- true if readonly
-