Class ColorPicker

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

public abstract class ColorPicker extends AbstractInputComponent
Component wrapper for the PrimeFaces p:colorPicker.
  • 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

      public void setColor(String color)
      Set the current color using the widget.
      Parameters:
      color - the Hex/RGB/HSL color
    • getColor

      public String 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