Class CascadeSelect
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.base.AbstractInputComponent
org.primefaces.selenium.component.CascadeSelect
- 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:cascadeSelect.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclick(org.openqa.selenium.WebElement element) org.openqa.selenium.WebElementgetInput()The input element reference.List<org.openqa.selenium.WebElement> getItems()org.openqa.selenium.WebElementgetLabel()List<org.openqa.selenium.WebElement> org.openqa.selenium.WebElementgetPanel()voidhide()Hides the CascadeSelect panel.booleanIs the input using AJAX "itemSelect" event?booleanisSelected(String label) voidvoidshow()Shows the CascadeSelect panel.voidEither display the dropdown or select the item it if is already displayed.Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, getAssignedLabel, 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
-
CascadeSelect
public CascadeSelect()
-
-
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 select the item it if is already displayed. -
show
public void show()Shows the CascadeSelect panel. -
hide
public void hide()Hides the CascadeSelect panel. -
select
-
getSelectedLabel
-
isSelected
-
getLabels
-
getValues
-
getInput
public org.openqa.selenium.WebElement getInput()Description copied from class:AbstractInputComponentThe input element reference.- Overrides:
getInputin classAbstractInputComponent- Returns:
- the
WebElementrepresenting the input.
-
getLabel
public org.openqa.selenium.WebElement getLabel() -
getItems
-
getLeafItems
-
getPanel
public org.openqa.selenium.WebElement getPanel() -
click
protected void click(org.openqa.selenium.WebElement element)
-