com.atlassian.jira.pageobjects.components
Class CalendarPopup
java.lang.Object
com.atlassian.jira.pageobjects.components.CalendarPopup
public class CalendarPopup
- extends Object
Represents the calendar popup on a page.
- Since:
- v5.1
Field Summary |
protected com.atlassian.pageobjects.elements.PageElementActions |
actions
|
protected com.atlassian.webdriver.AtlassianWebDriver |
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pageBinder
@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder
pageElementFinder
@Inject
protected com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder
jira
@Inject
protected JiraTestedProduct jira
actions
@Inject
protected com.atlassian.pageobjects.elements.PageElementActions actions
driver
@Inject
protected com.atlassian.webdriver.AtlassianWebDriver driver
timeouts
@Inject
protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
openCalendar
protected com.atlassian.pageobjects.elements.PageElement openCalendar
CalendarPopup
public CalendarPopup()
getDayCell
public com.atlassian.pageobjects.elements.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
PageElement.isPresent()
method of the
returned element.
- Parameters:
day
- day cell number
- Returns:
- a page element representing the day cell in the calendar table
getAllDayCells
public Iterable<com.atlassian.pageobjects.elements.PageElement> getAllDayCells()
getSelectedDayCell
public com.atlassian.pageobjects.elements.PageElement getSelectedDayCell()
hasDay
public boolean hasDay(int day)
getSelectedDay
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getSelectedDay()
getHourCell
public com.atlassian.pageobjects.elements.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
PageElement.isPresent()
method of the
returned element.
- Returns:
- a page element representing the hour cell in the calendar table
isDateTime
public boolean isDateTime()
getHour
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getHour()
isOpen
public com.atlassian.pageobjects.elements.query.TimedCondition isOpen()
isClosed
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isClosed()
selectDay
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
increaseHour
public CalendarPopup increaseHour()
increaseHour
public CalendarPopup increaseHour(int times)
getCalendarTitle
public com.atlassian.pageobjects.elements.query.TimedQuery getCalendarTitle()
getCalendarToolTip
public com.atlassian.pageobjects.elements.PageElement getCalendarToolTip()
getCalendarWeekLabel
public com.atlassian.pageobjects.elements.PageElement getCalendarWeekLabel()
getCalendarAMPM
public com.atlassian.pageobjects.elements.PageElement getCalendarAMPM()
getDaysOfWeek
public List<com.atlassian.pageobjects.elements.PageElement> getDaysOfWeek()
getTodayButton
public com.atlassian.pageobjects.elements.PageElement getTodayButton()
Copyright © 2002-2013 Atlassian. All Rights Reserved.