Class PickList
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.PickList
- 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:pickList.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the source list filtervoidClears the target list filtervoidfilterSourceList(String filterValue) Filters the source list with the provided filter valuevoidfilterTargetList(String filterValue) Filters the target list with the provided filter valueList<org.openqa.selenium.WebElement> Gets a list of the items in the source listGets a list of the labels in the source listGets a list of the values in the source listList<org.openqa.selenium.WebElement> Gets the list of items in the target listGets a list of the labels in the target listGets a list of the values in the target listbooleanDetermines if the pick list has checkbox selection enabledvoidmoveSourceItemsDown(String... items) Selects the given items in the source list and moves them down.voidmoveSourceItemsToBottom(String... items) Selects the given items in the source list and moves them to the bottom of the list.voidmoveSourceItemsToTop(String... items) Selects the given items in the source list and moves them to the top of the list.voidmoveSourceItemsUp(String... items) Selects the given items in the source list and moves them up.voidmoveTargetItemsDown(String... items) Selects the given items in the target list and moves them down.voidmoveTargetItemsToBottom(String... items) Selects the given items in the target list and moves them to the bottomvoidmoveTargetItemsToTop(String... items) Selects the given items in the target list and moves them to the topvoidmoveTargetItemsUp(String... items) Selects the given items in the target list and moves them up.voidPicks the given items from the source list.voidpickAll()Picks all the items in the source list.voidPicks the given items from the target list.voidRemoves all the items in the target list.voidsetFilterValue(org.openqa.selenium.WebElement filterElement, String filterValue) Filter using the Widget configuration "filterDelay" and "filterEvent" values.voidsetFilterValue(org.openqa.selenium.WebElement filterElement, String filterValue, String filterEvent, int filterDelay) Filter the column using these values.Methods 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
clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
-
Constructor Details
-
PickList
public PickList()
-
-
Method Details
-
pick
Picks the given items from the source list.- Parameters:
items- the items to pick. These can either be the labels displayed in the list or the underlying values.
-
pickAll
public void pickAll()Picks all the items in the source list. -
remove
Picks the given items from the target list.- Parameters:
items- the items to remove. These can either be the labels displayed in the list or the underlying values.
-
removeAll
public void removeAll()Removes all the items in the target list. -
moveSourceItemsUp
Selects the given items in the source list and moves them up.- Parameters:
items- the items to move up. These can either be the labels displayed in the list or the underlying values.
-
moveSourceItemsDown
Selects the given items in the source list and moves them down.- Parameters:
items- the items to move down. These can either be the labels displayed in the list or the underlying values.
-
moveSourceItemsToTop
Selects the given items in the source list and moves them to the top of the list.- Parameters:
items- the items to move to the top. These can either be the labels displayed in the list or the underlying values.
-
moveSourceItemsToBottom
Selects the given items in the source list and moves them to the bottom of the list.- Parameters:
items- the items to move to the bottom. These can either be the labels displayed in the list or the underlying values.
-
moveTargetItemsUp
Selects the given items in the target list and moves them up.- Parameters:
items- the items to move up. These can either be the labels displayed in the list or the underlying values.
-
moveTargetItemsDown
Selects the given items in the target list and moves them down.- Parameters:
items- the items to move down. These can either be the labels displayed in the list or the underlying values.
-
moveTargetItemsToTop
Selects the given items in the target list and moves them to the top- Parameters:
items- the items to move to the top. These can either be the labels displayed in the list or the underlying values.
-
moveTargetItemsToBottom
Selects the given items in the target list and moves them to the bottom- Parameters:
items- the items to move to the bottom. These can either be the labels displayed in the list or the underlying values.
-
filterSourceList
Filters the source list with the provided filter value- Parameters:
filterValue- the value to use for filtering the list
-
filterTargetList
Filters the target list with the provided filter value- Parameters:
filterValue- the value to use for filtering the list
-
clearSourceListFilter
public void clearSourceListFilter()Clears the source list filter -
clearTargetListFilter
public void clearTargetListFilter()Clears the target list filter -
setFilterValue
Filter using the Widget configuration "filterDelay" and "filterEvent" values.- Parameters:
filterElement- the source or target filterfilterValue- the value to set the filter
-
setFilterValue
public void setFilterValue(org.openqa.selenium.WebElement filterElement, String filterValue, String filterEvent, int filterDelay) Filter the column using these values.- Parameters:
filterElement- the source or target filterfilterValue- the value to filter forfilterEvent- the event causing the filter to trigger such as "keyup" or "enter"filterDelay- the delay in milliseconds if a "keyup" filter
-
getSourceListValues
-
getSourceListLabels
-
getSourceListElements
Gets a list of the items in the source list- Returns:
- the items in the source list
-
getTargetListValues
-
getTargetListLabels
-
getTargetListElements
Gets the list of items in the target list- Returns:
- the items in the target list
-
isCheckboxSelectionEnabled
public boolean isCheckboxSelectionEnabled()Determines if the pick list has checkbox selection enabled- Returns:
- true if checkbox selection is enabled, false otherwise
-