How to perform an action on MaterialDatePicker in an Espresso test?

Viewed 134

I have a MaterialDatePicker dialog, and I want to write an Espresso test that selects a date. Unfortunately, I can't use PickerActions for this. I'm looking for something similar to this:

onView(withClassName(Matchers.equalTo(DatePicker.class.getName()))).perform(PickerActions.setDate(year, monthOfYear, dayOfMonth));

Does anyone have any ideas on how to go about this?

Thanks in advance!

0 Answers
Related