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
Component wrapper for the PrimeFaces
p:selectOneMenu.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclick(org.openqa.selenium.WebElement element) voiddeselect(int index) voidorg.openqa.selenium.WebElementThe HTML label assigned to this input.org.openqa.selenium.WebElementorg.openqa.selenium.WebElementorg.openqa.selenium.WebElementgetInput()The input element reference.org.openqa.selenium.WebElementgetItems()org.openqa.selenium.WebElementgetLabel()getLabel(int index) All labels independent of filter.org.openqa.selenium.WebElementgetPanel()voidhide()Hides the SelectOneMenu panel.booleanbooleanIs the input using AJAX "itemSelect" event?booleanisSelected(int index) booleanisSelected(String label) voidselect(int index) voidvoidselectByValue(String value) voidshow()Shows the SelectOneMenu panel.voidEither display the dropdown or hide it if is already displayed.Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, getAssignedLabelText, isEnabled, isOnchangeAjaxified, pasteFromClipboard, selectAllTextMethods 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
click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isSelected, sendKeys, submit
-
Constructor Details
-
SelectOneMenu
public SelectOneMenu()
-
-
Method Details
-
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
-
select
-
getSelectedLabel
-
isSelected
-
getLabels
-
select
public void select(int index) -
deselect
public void deselect(int index) -
selectByValue
-
isSelected
public boolean isSelected(int index) -
getLabel
-
getAssignedLabel
public org.openqa.selenium.WebElement getAssignedLabel()Description copied from class:AbstractInputComponentThe HTML label assigned to this input.- Overrides:
getAssignedLabelin classAbstractInputComponent- Returns:
- the
WebElementrepresenting the label.
-
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() -
isEditable
public boolean isEditable()
-