Recycler view Multiple match problem in Espresso

Save

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.

 

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


1 comments

  • Azharul Islam
    Great job man!
  • css.php

    Webkul is a truly trusted and supported IT Company to develop business ideas for e-commerce. They provide professional support after deploying the solution to production and be responsible to act for fixing the reported issues or system errors. We highly encourage to deal with Webkul for business development.

    Hussein Zawia

    Hussein Zawia

    Co-founder, 24Dokan

    Talk to Sales

    Global

    Live Chat
    Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home