PickerActions

public final class PickerActions
extends Object

java.lang.Object
   ↳ android.support.test.espresso.contrib.PickerActions


Espresso action for interacting with DatePicker and TimePicker.

See also:

Summary

Public methods

static ViewAction setDate(int year, int monthOfYear, int dayOfMonth)

Returns a ViewAction that sets a date on a DatePicker.

static ViewAction setTime(int hours, int minutes)

Returns a ViewAction that sets a time on a TimePicker.

Inherited methods

From class java.lang.Object

Public methods

setDate

ViewAction setDate (int year, 
                int monthOfYear, 
                int dayOfMonth)

Returns a ViewAction that sets a date on a DatePicker.

Parameters
year int

monthOfYear int

dayOfMonth int

Returns
ViewAction

setTime

ViewAction setTime (int hours, 
                int minutes)

Returns a ViewAction that sets a time on a TimePicker.

Parameters
hours int

minutes int

Returns
ViewAction