Class Calendar
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.base.AbstractInputComponent
org.primefaces.selenium.component.Calendar
- 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:calendar.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebElementgetInput()The input element reference.longgetValue()Gets the JS date value from the widget.booleanIs this component AJAX enabled with "close"?booleanIs this component AJAX enabled with "dateSelect"?booleanIs this component AJAX enabled with "viewChange"?millisAsFormattedDate(long millis) voidsetDate(long epoch) Widget API call to set date to this epoch in millis.voidsetDate(LocalDateTime dateTime) Widget API call to set date to this LocalDateTime.voidsetValue(long millis) voidvoidsetValue(LocalDateTime dateTime) Methods inherited from class org.primefaces.selenium.component.base.AbstractInputComponent
clear, copyToClipboard, disable, enable, focus, getAssignedLabel, getAssignedLabelText, 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
-
Calendar
public Calendar()
-
-
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.
-
isDateSelectAjaxified
public boolean isDateSelectAjaxified()Is this component AJAX enabled with "dateSelect"?- Returns:
- true if AJAX enabled false if not
-
isViewChangeAjaxified
public boolean isViewChangeAjaxified()Is this component AJAX enabled with "viewChange"?- 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
-
getValue
-
getValueAsLocalDate
-
setValue
-
setValue
-
setValue
public void setValue(long millis) -
setDate
Widget API call to set date to this LocalDateTime.- Parameters:
dateTime- the LocalDateTime to set to
-
setDate
public void setDate(long epoch) Widget API call to set date to this epoch in millis.- Parameters:
epoch- epoch in milliseconds
-
getWidgetDate
Gets the JS date value from the widget.- Returns:
- the JS date value or null
-
millisAsFormattedDate
-
getTimezoneOffset
public long getTimezoneOffset()
-