com.atlassian.jira.webtest.selenium.framework.fields
Class DateFieldWithCalendar

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.fields.DateFieldWithCalendar
All Implemented Interfaces:
Field<Date>

public class DateFieldWithCalendar
extends AbstractSeleniumPageObject
implements Field<Date>

Represents a date field in JIRA with calendar popup.

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
DateFieldWithCalendar(SeleniumContext ctx, String elementLocator, String calendarTrigger, String dateFormat)
           
 
Method Summary
 void assertVisible()
          Make sure that the field is currently visible on the page.
static DateFieldWithCalendar createForDateCustomField(SeleniumContext ctx, long customFieldId)
           
static DateFieldWithCalendar createForDateTimeCustomField(SeleniumContext ctx, long customFieldId)
           
 String getStringValue()
          Return the string value of the field.
 Date getValue()
          Return the value currently within the field.
 CalendarPopup openCalendar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFieldWithCalendar

public DateFieldWithCalendar(SeleniumContext ctx,
                             String elementLocator,
                             String calendarTrigger,
                             String dateFormat)
Method Detail

getValue

public Date getValue()
Description copied from interface: Field
Return the value currently within the field.

Specified by:
getValue in interface Field<Date>
Returns:
the value currently within the field.

openCalendar

public CalendarPopup openCalendar()

getStringValue

public String getStringValue()
Description copied from interface: Field
Return the string value of the field.

Specified by:
getStringValue in interface Field<Date>
Returns:
the string value of the field.

assertVisible

public void assertVisible()
Description copied from interface: Field
Make sure that the field is currently visible on the page.

Specified by:
assertVisible in interface Field<Date>

createForDateTimeCustomField

public static DateFieldWithCalendar createForDateTimeCustomField(SeleniumContext ctx,
                                                                 long customFieldId)

createForDateCustomField

public static DateFieldWithCalendar createForDateCustomField(SeleniumContext ctx,
                                                             long customFieldId)


Copyright © 2002-2012 Atlassian. All Rights Reserved.