Read complete story

Recycler view Multiple match problem in Espresso

Multiple match problem in recycler view appear when there are multiple buttons having the same id but you are clicking on the particular button so the point is first you have to go in recycler view then at that particular position we have to perform the click.

Error:-

Solution :-

Here we have class “MyViewAction” with object “myViewAction“.

Then we using this class in code like this:-

here “my_recycler_view” is the id of recycler view and “0” is the position where we want to click that button and
button-id” is the id of the button on which we have to perform the click.

Here is the class “MyViewAction“:-

By using this technique you can easily locate to your location When there are multiple same id buttons.

In next blog, we will discuss more basics, errors with solutions of espresso scripts.

 

 

 

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close