daveayan.gherkinsalad.components.jqueryui.datepicker
Class DefaultDatePicker

java.lang.Object
  extended by daveayan.gherkinsalad.AutomationObject
      extended by daveayan.gherkinsalad.components.core.BaseBrowserElement
          extended by daveayan.gherkinsalad.components.core.Component
              extended by daveayan.gherkinsalad.components.jqueryui.datepicker.DefaultDatePicker
All Implemented Interfaces:
BrowserElement, CanBeDisabled, CanBeEnabled, Nullable, DatePicker

public class DefaultDatePicker
extends Component
implements DatePicker


Field Summary
 Clickable next_month
           
 Clickable prev_month
           
 
Fields inherited from class daveayan.gherkinsalad.AutomationObject
_name, browser, random
 
Constructor Summary
DefaultDatePicker()
           
 
Method Summary
 void select_date_except_weekends(Date date_to_select, Date current_date)
          Use this method to navigate to the month and year that needs to be selected and then selects the date.
 void select_date(Date date_to_select, Date current_date)
          Use this method to navigate to the month and year that needs to be selected and then selects the date.
 
Methods inherited from class daveayan.gherkinsalad.components.core.Component
find
 
Methods inherited from class daveayan.gherkinsalad.components.core.BaseBrowserElement
findElement, findElements, found, getText, has_text, isDisabled, isDisplayed, isEnabled, isNotDisplayed, name, name, root_element, root_elements, should_be_disabled, should_be_displayed, should_be_enabled, should_have_text, should_not_be_displayed, should_not_have_text, toString
 
Methods inherited from class daveayan.gherkinsalad.AutomationObject
action, and, ask, close_browser, error, execute_async_javascript, execute_javascript, feature, given, goto_url, info, is_not_null, is_not_null, is_null, is_null, javascript_authentication, javascript_popup_click_ok, javascript_popup_dismiss, launch_browser, scenario, switch_to_default_window, switch_to_window_with_name, takeScreenshot, task, then, thisIsNamedElement, verify_profile, wait_between_steps_plus, wait_between_steps, wait_for_seconds, warn, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface daveayan.gherkinsalad.components.core.Nullable
is_not_null, is_null
 

Field Detail

next_month

public Clickable next_month

prev_month

public Clickable prev_month
Constructor Detail

DefaultDatePicker

public DefaultDatePicker()
Method Detail

select_date_except_weekends

public void select_date_except_weekends(Date date_to_select,
                                        Date current_date)
Description copied from interface: DatePicker
Use this method to navigate to the month and year that needs to be selected and then selects the date. If the date is on a weekend this method does not select the date. The exact implementation of what needs to be done in that case is left up to the implementors of this interface.

Specified by:
select_date_except_weekends in interface DatePicker

select_date

public void select_date(Date date_to_select,
                        Date current_date)
Description copied from interface: DatePicker
Use this method to navigate to the month and year that needs to be selected and then selects the date. This method selects the date even if it falls on the weekend.

Specified by:
select_date in interface DatePicker


Copyright © 2013. All Rights Reserved.