com.atlassian.jira.webtest.selenium.framework.components
Class CalendarPopup

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.components.CalendarPopup
All Implemented Interfaces:
LocalizablePageObject, PageObject

public final class CalendarPopup
extends AbstractSeleniumPageObject
implements PageObject, LocalizablePageObject

Represents the calendar popup on a page. Can be used to drive the popup.

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
CalendarPopup(String inputLocator, String triggerLocator, SeleniumContext context)
           
 
Method Summary
 void assertClosed(long timeout)
           
 void assertReady(long timeout)
          Assert that this object is loaded and ready to be exercised by Selenium.
 CalendarPopup clickDay(int day)
           
 String dayLocator(int day)
          Locator of a given day cell in the calendar popup.
 String getDate()
          Retrieve date value from the calendar input field
 String hourLocator()
          Locator of the hour cell in the calendar popup.
 CalendarPopup increaseHour()
           
 CalendarPopup increaseHour(int times)
           
 String inPopup(String locator)
          CSS locator of an element within the calendar popup.
 String inputLocator()
           
 CalendarPopup insertDate(String date)
          Insert date into
 String locator()
          Locator of this page object.
 CalendarPopup open()
           
 String triggerLocator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarPopup

public CalendarPopup(String inputLocator,
                     String triggerLocator,
                     SeleniumContext context)
Method Detail

locator

public String locator()
Description copied from interface: LocalizablePageObject
Locator of this page object.

Specified by:
locator in interface LocalizablePageObject
Returns:
locator

inputLocator

public String inputLocator()

triggerLocator

public String triggerLocator()

dayLocator

public String dayLocator(int day)
Locator of a given day cell in the calendar popup.

Parameters:
day - day cell number
Returns:
day locator

hourLocator

public String hourLocator()
Locator of the hour cell in the calendar popup.

Returns:
hour cell locator

inPopup

public String inPopup(String locator)
CSS locator of an element within the calendar popup.

Parameters:
locator - CSS locator
Returns:
locator of the element within this popup

insertDate

public CalendarPopup insertDate(String date)
Insert date into

Parameters:
date -
Returns:

open

public CalendarPopup open()

clickDay

public CalendarPopup clickDay(int day)

increaseHour

public CalendarPopup increaseHour()

increaseHour

public CalendarPopup increaseHour(int times)

getDate

public String getDate()
Retrieve date value from the calendar input field

Returns:
date from the calendar text input

assertReady

public void assertReady(long timeout)
Description copied from interface: PageObject
Assert that this object is loaded and ready to be exercised by Selenium.

Specified by:
assertReady in interface PageObject
Parameters:
timeout - timeout to wait

assertClosed

public void assertClosed(long timeout)


Copyright © 2002-2013 Atlassian. All Rights Reserved.