org.xwiki.appwithinminutes.test.po
Class DatePicker

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.appwithinminutes.test.po.DatePicker

public class DatePicker
extends BaseElement

Represents the actions possible on the date picker.

Since:
4.2M1
Version:
$Id: 051aa89eaa80e721aab8754d993b5a031856d97e $

Constructor Summary
DatePicker()
           
 
Method Summary
 String getDay()
           
 String getHour()
           
 String getMinute()
           
 String getMonth()
           
 String getYear()
           
 boolean hasHourSelector()
           
 void setDay(String day)
          Selects the specified day from the current month.
 void setHour(String hour)
          Selects the specified hour.
 void setMinute(String minute)
          Selects the specified minute.
 void setMonth(String month)
          Selects the specified month.
 void setYear(String year)
          Selects the specified year.
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePicker

public DatePicker()
Method Detail

setYear

public void setYear(String year)
Selects the specified year.

Parameters:
year - the year to select

getYear

public String getYear()
Returns:
the selected year

setMonth

public void setMonth(String month)
Selects the specified month.

Parameters:
month - the month to select

getMonth

public String getMonth()
Returns:
the selected month

setDay

public void setDay(String day)
Selects the specified day from the current month.

Parameters:
day - the day to select

getDay

public String getDay()
Returns:
the selected day, if any, otherwise null

setHour

public void setHour(String hour)
Selects the specified hour.

Parameters:
hour - the hour to select

getHour

public String getHour()
Returns:
the selected hour

setMinute

public void setMinute(String minute)
Selects the specified minute.

Parameters:
minute - the minute to select

getMinute

public String getMinute()
Returns:
the selected minute

hasHourSelector

public boolean hasHourSelector()
Returns:
true if the date picker allows you to select the hour, false otherwise


Copyright © 2004-2013 XWiki. All Rights Reserved.