Class ColorPicker
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.base.AbstractInputComponent
org.primefaces.selenium.component.ColorPicker
- 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:colorPicker.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Gets the current color from the widget.org.openqa.selenium.WebElementgetPanel()Gets the color pickup popup panel.org.openqa.selenium.WebElementGets the popup trigger button.voidhidePanel(boolean revert) Hides the overlay panel.booleanIs this component AJAX enabled with "close"?booleanIs this component AJAX enabled with "open"?voidSet the current color using the widget.org.openqa.selenium.WebElementShows the overlay panel.Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, getAssignedLabel, getAssignedLabelText, getInput, 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
-
ColorPicker
public ColorPicker()
-
-
Method Details
-
getPanel
public org.openqa.selenium.WebElement getPanel()Gets the color pickup popup panel.- Returns:
- the WebElement for the panel
-
getTriggerButton
public org.openqa.selenium.WebElement getTriggerButton()Gets the popup trigger button.- Returns:
- the WebElement for the trigger button
-
isOpenAjaxified
public boolean isOpenAjaxified()Is this component AJAX enabled with "open"?- Returns:
- true if AJAX enabled false if not
-
isCloseAjaxified
public boolean isCloseAjaxified()Is this component AJAX enabled with "close"?- Returns:
- true if AJAX enabled false if not
-
setColor
Set the current color using the widget.- Parameters:
color- the Hex/RGB/HSL color
-
getColor
Gets the current color from the widget.- Returns:
- the Hex/RGB/HSL color or null
-
showPanel
public org.openqa.selenium.WebElement showPanel()Shows the overlay panel.- Returns:
- the panel shown
-
hidePanel
public void hidePanel(boolean revert) Hides the overlay panel.- Parameters:
revert- true to revert to the default color
-