Class SelectOneButton
- java.lang.Object
-
- org.primefaces.selenium.AbstractPrimePageFragment
-
- org.primefaces.selenium.component.base.AbstractComponent
-
- org.primefaces.selenium.component.base.AbstractInputComponent
-
- org.primefaces.selenium.component.SelectOneButton
-
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
public abstract class SelectOneButton extends AbstractInputComponent
Component wrapper for the PrimeFacesp:selectOneButton.
-
-
Constructor Summary
Constructors Constructor Description SelectOneButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclick(org.openqa.selenium.WebElement element)voiddeselect(int index)voiddeselect(int index, boolean ignoreDeselectable)voiddeselect(String label)voiddeselect(String label, boolean ignoreDeselectable)org.openqa.selenium.WebElementgetActiveOption()List<String>getOptionLabels()List<org.openqa.selenium.WebElement>getOptions()StringgetSelectedLabel()booleanisSelected(int index)booleanisSelected(String label)booleanisUnselectable()voidselect(int index)voidselect(String label)voidselectFirst()voidselectLast()voidselectNext()-
Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, getAssignedLabel, getAssignedLabelText, getInput, isEnabled, isOnchangeAjaxified, pasteFromClipboard, selectAllText
-
Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
destroy, getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxified
-
Methods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriver
-
-
-
-
Method Detail
-
getOptions
public List<org.openqa.selenium.WebElement> getOptions()
-
getActiveOption
public org.openqa.selenium.WebElement getActiveOption()
-
getSelectedLabel
public String getSelectedLabel()
-
isSelected
public boolean isSelected(String label)
-
isSelected
public boolean isSelected(int index)
-
selectNext
public void selectNext()
-
select
public void select(String label)
-
select
public void select(int index)
-
selectFirst
public void selectFirst()
-
selectLast
public void selectLast()
-
deselect
public void deselect(String label)
-
deselect
public void deselect(String label, boolean ignoreDeselectable)
-
deselect
public void deselect(int index)
-
deselect
public void deselect(int index, boolean ignoreDeselectable)
-
isUnselectable
public boolean isUnselectable()
-
click
protected void click(org.openqa.selenium.WebElement element)
-
-