Class SelectOneMenu
- java.lang.Object
-
- org.primefaces.selenium.AbstractPrimePageFragment
-
- org.primefaces.selenium.component.base.AbstractComponent
-
- org.primefaces.selenium.component.base.AbstractInputComponent
-
- org.primefaces.selenium.component.SelectOneMenu
-
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
public abstract class SelectOneMenu extends AbstractInputComponent
Component wrapper for the PrimeFacesp:selectOneMenu.
-
-
Constructor Summary
Constructors Constructor Description SelectOneMenu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclick(org.openqa.selenium.WebElement element)voiddeselect(int index)voiddeselect(String label)org.openqa.selenium.WebElementgetEditableInput()org.openqa.selenium.WebElementgetFilterInput()org.openqa.selenium.WebElementgetInput()The input element reference.org.openqa.selenium.WebElementgetItems()org.openqa.selenium.WebElementgetLabel()StringgetLabel(int index)List<String>getLabels()All labels independent of filter.org.openqa.selenium.WebElementgetPanel()StringgetSelectedLabel()voidhide()Hides the SelectOneMenu panel.booleanisItemSelectAjaxified()Is the input using AJAX "itemSelect" event?booleanisSelected(int index)booleanisSelected(String label)voidselect(int index)voidselect(String label)voidselectByValue(String value)voidshow()Shows the SelectOneMenu panel.voidtoggleDropdown()Either display the dropdown or hide it if is already displayed.-
Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, getAssignedLabel, getAssignedLabelText, 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
-
isItemSelectAjaxified
public boolean isItemSelectAjaxified()
Is the input using AJAX "itemSelect" event?- Returns:
- true if using AJAX for itemSelect
-
toggleDropdown
public void toggleDropdown()
Either display the dropdown or hide it if is already displayed.
-
show
public void show()
Shows the SelectOneMenu panel.
-
hide
public void hide()
Hides the SelectOneMenu panel.
-
deselect
public void deselect(String label)
-
select
public void select(String label)
-
getSelectedLabel
public String getSelectedLabel()
-
isSelected
public boolean isSelected(String label)
-
select
public void select(int index)
-
deselect
public void deselect(int index)
-
selectByValue
public void selectByValue(String value)
-
isSelected
public boolean isSelected(int index)
-
getLabel
public String getLabel(int index)
-
getInput
public org.openqa.selenium.WebElement getInput()
Description copied from class:AbstractInputComponentThe input element reference.- Overrides:
getInputin classAbstractInputComponent- Returns:
- the
WebElementrepresenting the input.
-
getEditableInput
public org.openqa.selenium.WebElement getEditableInput()
-
getLabel
public org.openqa.selenium.WebElement getLabel()
-
getItems
public org.openqa.selenium.WebElement getItems()
-
getPanel
public org.openqa.selenium.WebElement getPanel()
-
click
protected void click(org.openqa.selenium.WebElement element)
-
getFilterInput
public org.openqa.selenium.WebElement getFilterInput()
-
-