Class Rating

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

public abstract class Rating extends AbstractInputComponent
Component wrapper for the PrimeFaces p:rating.
  • Constructor Details

    • Rating

      public Rating()
  • Method Details

    • getInput

      public org.openqa.selenium.WebElement getInput()
      Description copied from class: AbstractInputComponent
      The input element reference.
      Overrides:
      getInput in class AbstractInputComponent
      Returns:
      the WebElement representing the input.
    • isCancelAjaxified

      public boolean isCancelAjaxified()
      Is Cancel event AJAX enabled?
      Returns:
      true if AJAX enabled false if not
    • isRatingAjaxified

      public boolean isRatingAjaxified()
      Is Rating event AJAX enabled?
      Returns:
      true if AJAX enabled false if not
    • getCancelIcon

      public org.openqa.selenium.WebElement getCancelIcon()
      Gets the cancel icon if available.
      Returns:
      the cancel icon
    • cancel

      public void cancel()
      Resets the rating so that no stars are selected using the cancel icon.
    • getValue

      public Number getValue()
      Finds the current rating, i.e. the number of stars selected.
      Returns:
      The current rating value.
    • setValue

      public void setValue(Number value)
      Sets the rating to the given value.
      Parameters:
      value - New rating value to set (number of starts selected).
    • reset

      public void reset()
      Resets the rating so that no stars are selected.
    • isDisabled

      public boolean isDisabled()
      Is this rating disabled?
      Returns:
      true if disabled
    • isReadOnly

      public boolean isReadOnly()
      Is this rating readonly?
      Returns:
      true if readonly
    • isEnabled

      public boolean isEnabled()
      Description copied from class: AbstractInputComponent
      Is this SelectOneMenu enabled?
      Specified by:
      isEnabled in interface org.openqa.selenium.WebElement
      Overrides:
      isEnabled in class AbstractInputComponent
      Returns:
      true if enabled, false if not