Package FlaNium.WinAPI.elements
Class Calendar
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- FlaNium.WinAPI.DesktopElement
-
- FlaNium.WinAPI.elements.Calendar
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver
public class Calendar extends DesktopElement
-
-
Constructor Summary
Constructors Constructor Description Calendar(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToSelection(LocalDateTime dateTime)For WPF calendar with SelectionMode="MultipleRange" this method adds the specified date to current selection.voidselectDate(LocalDateTime dateTime)Deselects other selected dates and selects the specified date.List<LocalDateTime>selectedDates()Gets the selected dates in the calendar.-
Methods inherited from class FlaNium.WinAPI.DesktopElement
callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callVoidCommand, castTo, createLocalDateTimeFromResponse, createRemoteWebElementFromResponse, createRemoteWebElementsFromResponse, exe, execute, getActiveWindow, getAttribute, getElementRect, getName, mouseActions, parseDateTime, parseDouble, screenshotActions, setAsRootElement, toCoordinateElement, touchActions
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, click, equals, execute, findElement, findElement, findElements, findElements, getAccessibleName, getAriaRole, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
-
-
-
-
Method Detail
-
selectedDates
public List<LocalDateTime> selectedDates()
Gets the selected dates in the calendar. For Win32 multiple selection calendar the returned array has two dates, the first date and the last date of the selected range. For WPF calendar the returned array contains all selected dates.- Returns:
-
selectDate
public void selectDate(LocalDateTime dateTime)
Deselects other selected dates and selects the specified date.- Parameters:
dateTime-
-
addToSelection
public void addToSelection(LocalDateTime dateTime)
For WPF calendar with SelectionMode="MultipleRange" this method adds the specified date to current selection. For any other type of SelectionMode it deselects other selected dates and selects the specified date. This method is supported only for WPF calendar.- Parameters:
dateTime-
-
-