Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 18.104.22.168 release ready!
Owner and Founder. Opencart
In Espresso when we have to locate to a particular position of an element and there are multiple element of having same id then we can do it by the following approaches :-
In this we have to create a custom index :-
And like this we have to use it :-
Here the “button_id” is the id where we want to perfom a click action and “0” is the index position of that element.
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.
I hope this will help you when you face “multiple match” problem in Espresso.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.