public class CalendarPopup extends Object
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.PageElementActions |
actions |
protected org.openqa.selenium.WebDriver |
driver |
protected JiraTestedProduct |
jira |
protected com.atlassian.pageobjects.elements.PageElement |
openCalendar |
protected com.atlassian.pageobjects.PageBinder |
pageBinder |
protected com.atlassian.pageobjects.elements.PageElementFinder |
pageElementFinder |
protected com.atlassian.pageobjects.elements.timeout.Timeouts |
timeouts |
Constructor and Description |
---|
CalendarPopup() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method just clicks on "cancel" button.
|
void |
confirm()
This method confirms selection, populating the selected date into the input field,
and closes the calendar.
|
Iterable<com.atlassian.pageobjects.elements.PageElement> |
getAllDayCells() |
com.atlassian.pageobjects.elements.PageElement |
getCalendarAMPM() |
com.atlassian.pageobjects.elements.query.TimedQuery |
getCalendarTitle() |
com.atlassian.pageobjects.elements.PageElement |
getCalendarToolTip() |
com.atlassian.pageobjects.elements.PageElement |
getCalendarWeekLabel() |
com.atlassian.pageobjects.elements.PageElement |
getDayCell(int day)
A cell in the calendar popup representing a certain day.
|
List<com.atlassian.pageobjects.elements.PageElement> |
getDaysOfWeek() |
com.atlassian.pageobjects.elements.query.TimedQuery<Integer> |
getHour() |
com.atlassian.pageobjects.elements.PageElement |
getHourCell()
A cell in the calendar popup representing the hour.
|
com.atlassian.pageobjects.elements.query.TimedQuery<Integer> |
getSelectedDay() |
com.atlassian.pageobjects.elements.PageElement |
getSelectedDayCell() |
com.atlassian.pageobjects.elements.PageElement |
getTodayButton() |
boolean |
hasDay(int day) |
CalendarPopup |
increaseHour() |
CalendarPopup |
increaseHour(int times) |
void |
incrementMonth() |
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
isClosed() |
boolean |
isDateTime() |
com.atlassian.pageobjects.elements.query.TimedCondition |
isOpen() |
void |
selectDay(int day)
Clicks a day cell in this calendar.
|
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder
@Inject protected JiraTestedProduct jira
@Inject protected com.atlassian.pageobjects.elements.PageElementActions actions
@Inject protected org.openqa.selenium.WebDriver driver
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
protected com.atlassian.pageobjects.elements.PageElement openCalendar
public com.atlassian.pageobjects.elements.PageElement getDayCell(int day)
PageElement.isPresent()
method of the
returned element.day
- day cell numberpublic Iterable<com.atlassian.pageobjects.elements.PageElement> getAllDayCells()
public com.atlassian.pageobjects.elements.PageElement getSelectedDayCell()
public boolean hasDay(int day)
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getSelectedDay()
public com.atlassian.pageobjects.elements.PageElement getHourCell()
PageElement.isPresent()
method of the
returned element.public boolean isDateTime()
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getHour()
public com.atlassian.pageobjects.elements.query.TimedCondition isOpen()
public void close()
public void confirm()
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isClosed()
public void selectDay(int day)
Clicks a day cell in this calendar. The popup must be open and the cell must exist in this calendar, or an exception will be raised.
This will close the popup and insert the date into the associated picker. Query the picker for the result of this action.
day
- the day number to clickpublic void incrementMonth()
public CalendarPopup increaseHour()
public CalendarPopup increaseHour(int times)
public com.atlassian.pageobjects.elements.query.TimedQuery getCalendarTitle()
public com.atlassian.pageobjects.elements.PageElement getCalendarToolTip()
public com.atlassian.pageobjects.elements.PageElement getCalendarWeekLabel()
public com.atlassian.pageobjects.elements.PageElement getCalendarAMPM()
public List<com.atlassian.pageobjects.elements.PageElement> getDaysOfWeek()
public com.atlassian.pageobjects.elements.PageElement getTodayButton()
Copyright © 2002-2024 Atlassian. All Rights Reserved.