Class Rating
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.base.AbstractInputComponent
org.primefaces.selenium.component.Rating
- 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:rating.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Resets the rating so that no stars are selected using the cancel icon.org.openqa.selenium.WebElementGets the cancel icon if available.org.openqa.selenium.WebElementgetInput()The input element reference.getValue()Finds the current rating, i.e.booleanIs Cancel event AJAX enabled?booleanIs this rating disabled?booleanIs this SelectOneMenu enabled?booleanIs Rating event AJAX enabled?booleanIs this rating readonly?voidreset()Resets the rating so that no stars are selected.voidSets the rating to the given value.Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, focus, getAssignedLabel, getAssignedLabelText, 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
-
Rating
public Rating()
-
-
Method Details
-
getInput
public org.openqa.selenium.WebElement getInput()Description copied from class:AbstractInputComponentThe input element reference.- Overrides:
getInputin classAbstractInputComponent- Returns:
- the
WebElementrepresenting 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
Finds the current rating, i.e. the number of stars selected.- Returns:
- The current rating value.
-
setValue
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:AbstractInputComponentIs this SelectOneMenu enabled?- Specified by:
isEnabledin interfaceorg.openqa.selenium.WebElement- Overrides:
isEnabledin classAbstractInputComponent- Returns:
- true if enabled, false if not
-