S
S
samarjan2015-01-19 12:09:33
Android
samarjan, 2015-01-19 12:09:33

How to find a specific element in two different lists?

Please help me with a question. There are two different lists on the screen, and in the second list the values ​​​​from the first are duplicated (only the name), each list has a different item, but I can’t make the right request for Espresso so that he would select the desired list item for me and click on it, and in response to everything I tried, the test gives a message that two matches were found on the screen and it needs to be described more specifically. Has anyone come across this and know how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
samarjan, 2015-01-20
@samarjan

onData(anything())
.inAdapterView(withId(R.id.list_katalog))
.atPosition(0)
.onChildView(withId(R.id.desc))
.perform(click());

Found this solution, works as I need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question