public class

CalendarPopup

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.components.CalendarPopup

Class Overview

Represents the calendar popup on a page.

Summary

Fields
protected PageElementActions actions
protected AtlassianWebDriver driver
protected JiraTestedProduct jira
protected PageElement openCalendar
protected PageBinder pageBinder
protected PageElementFinder pageElementFinder
protected Timeouts timeouts
Public Constructors
CalendarPopup()
Public Methods
Iterable<PageElement> getAllDayCells()
PageElement getCalendarAMPM()
TimedQuery getCalendarTitle()
PageElement getCalendarToolTip()
PageElement getCalendarWeekLabel()
PageElement getDayCell(int day)
A cell in the calendar popup representing a certain day.
List<PageElement> getDaysOfWeek()
TimedQuery<Integer> getHour()
PageElement getHourCell()
A cell in the calendar popup representing the hour.
TimedQuery<Integer> getSelectedDay()
PageElement getSelectedDayCell()
PageElement getTodayButton()
boolean hasDay(int day)
CalendarPopup increaseHour()
CalendarPopup increaseHour(int times)
TimedQuery<Boolean> isClosed()
boolean isDateTime()
TimedCondition isOpen()
void selectDay(int day)

Clicks a day cell in this calendar.

[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected PageElementActions actions

protected AtlassianWebDriver driver

protected JiraTestedProduct jira

protected PageElement openCalendar

protected PageBinder pageBinder

protected PageElementFinder pageElementFinder

protected Timeouts timeouts

Public Constructors

public CalendarPopup ()

Public Methods

public Iterable<PageElement> getAllDayCells ()

public PageElement getCalendarAMPM ()

public TimedQuery getCalendarTitle ()

public PageElement getCalendarToolTip ()

public PageElement getCalendarWeekLabel ()

public PageElement getDayCell (int day)

A cell in the calendar popup representing a certain day. Note that the cell may or may not exist on the page, which may be queried by isPresent() method of the returned element.

Parameters
day day cell number
Returns
  • a page element representing the day cell in the calendar table

public List<PageElement> getDaysOfWeek ()

public TimedQuery<Integer> getHour ()

public PageElement getHourCell ()

A cell in the calendar popup representing the hour. Note that the cell may or may not exist on the page, which may be queried by isPresent() method of the returned element.

Returns
  • a page element representing the hour cell in the calendar table

public TimedQuery<Integer> getSelectedDay ()

public PageElement getSelectedDayCell ()

public PageElement getTodayButton ()

public boolean hasDay (int day)

public CalendarPopup increaseHour ()

public CalendarPopup increaseHour (int times)

public TimedQuery<Boolean> isClosed ()

public boolean isDateTime ()

public TimedCondition isOpen ()

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.

Parameters
day the day number to click