Class 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 PrimeFaces p:selectOneMenu.
  • 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

      public void deselect(String label)
    • select

      public void select(String label)
    • getSelectedLabel

      public String getSelectedLabel()
    • isSelected

      public boolean isSelected(String label)
    • getLabels

      public List<String> getLabels()
      All labels independent of filter.
      Returns:
    • 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)
    • getAssignedLabel

      public org.openqa.selenium.WebElement getAssignedLabel()
      Description copied from class: AbstractInputComponent
      The HTML label assigned to this input.
      Overrides:
      getAssignedLabel in class AbstractInputComponent
      Returns:
      the WebElement representing the label.
    • getInput

      public org.openqa.selenium.WebElement getInput()
      Description copied from class: AbstractInputComponent
      The input element reference.
      Overrides:
      getInput in class AbstractInputComponent
      Returns:
      the WebElement representing 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()