public void reset ( ) { this . getElement ( ) . clear ( ) ; Grid . driver ( ) . findElement ( By . tagName ( "body" ) ) . click ( ) ; this . calendar = Calendar . getInstance ( ) ; this . getElement ( ) . click ( ) ; }
Clears the date picker . Some browsers require clicking on an element outside of the date picker field to properly reset the calendar to today s date .