|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.selenium.framework.components.CalendarPopup
public final class CalendarPopup
Represents the calendar popup on a page. Can be used to drive the popup.
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 |
---|
public CalendarPopup(String inputLocator, String triggerLocator, SeleniumContext context)
Method Detail |
---|
public String locator()
LocalizablePageObject
locator
in interface LocalizablePageObject
public String inputLocator()
public String triggerLocator()
public String dayLocator(int day)
day
- day cell number
public String hourLocator()
public String inPopup(String locator)
locator
- CSS locator
public CalendarPopup insertDate(String date)
date
-
public CalendarPopup open()
public CalendarPopup clickDay(int day)
public CalendarPopup increaseHour()
public CalendarPopup increaseHour(int times)
public String getDate()
public void assertReady(long timeout)
PageObject
assertReady
in interface PageObject
timeout
- timeout to waitpublic void assertClosed(long timeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |