Class AccordionPanel

All Implemented Interfaces:
org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public abstract class AccordionPanel extends AbstractComponent
Component wrapper for the PrimeFaces p:accordionPanel.
  • Constructor Details

    • AccordionPanel

      public AccordionPanel()
  • Method Details

    • getHeaders

      public List<org.openqa.selenium.WebElement> getHeaders()
    • getContents

      public List<org.openqa.selenium.WebElement> getContents()
    • getTabs

      public List<Tab> getTabs()
      Gets the accordion tabs.
      Returns:
      the list of tabs
    • toggleTab

      public void toggleTab(int index)
      Toggle the tab denoted by the specified index.
      Parameters:
      index - the index of the tab to toggle
    • expandTab

      public void expandTab(int index)
      Expands the tab denoted by the specified index.
      Parameters:
      index - the index of the tab to expand
    • collapseTab

      public void collapseTab(int index)
      Collapse the tab denoted by the specified index.
      Parameters:
      index - the index of the tab to collapse
    • getSelectedTabs

      public List<Tab> getSelectedTabs()
      Provides the selected AccordionPanel tab(s).
      Returns:
      the selected tab(s)