S
S
Sergey Ivanchenko2016-09-06 12:40:41
Android
Sergey Ivanchenko, 2016-09-06 12:40:41

How to select item in Spinner list which is inside RecyclerView.ViewHolder?

Right now I'm writing an Espresso test that should select a specific item in the Spinner.
The structure is as follows:
Fragment
|-- RecyclerView
---|--MyCustomHolder
-----|--Spinner
---------|--MyItemsAdapter
You need to select a specific element in the Spinner. The Spinner is inside one of the items inside the RecyclerView.
I found that you can select an element in the Sprinner that is on the form using onData.
To work with RecyclerView I use RecyclerViewActions. But I can't figure out how to connect these two methods.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question