Git Product home page Git Product logo

Comments (5)

rocboronat avatar rocboronat commented on June 14, 2024

Hi @MarinaTov !

It seems that Espresso is trying to express the idea that multiple Views has the ID you're trying to click. So, it doesn't know what View is the View you want to click.

To fix the issue, we have different options there:

  • Give different names to that different buttons. It's the simpler solution, and IMHO, something that improves the maintainability of the whole project. But it could be an issue if it's placed inside a RecyclerView, like your case.
  • Use BaristaRecyclerViewActions.clickRecyclerViewItemChild(R.id.user_preference_category_recycler_view, 0, R.id.close_button), that will try to tap R.id.close_button of the first child inside R.id.user_preference_category_recycler_view.
  • Update Barista to the last version (1.0.1), as it only clicks on visible items. It could be an easy fix to this scenario. But the issue will appear again when you place two childs inside the recycler with the R.id.close_button visible.

Let me keep this question open to track if the answer helps you fixing it! :·)

from barista.

MarinaTov avatar MarinaTov commented on June 14, 2024

version 1.0.1 resolved problem
Thanks a lot

from barista.

rocboronat avatar rocboronat commented on June 14, 2024

You're welcome! :·)

from barista.

RajaniAchrya avatar RajaniAchrya commented on June 14, 2024

Hi, I'm getting id/phoneEditText' matches multiple views in the hierarchy. Problem views are marked with 'MATCHES' below.
where there's only one view with this id.

from barista.

ShaxGOD avatar ShaxGOD commented on June 14, 2024

How can we just interact with id ? like id/phoneEditText[0] - is that possible ?

from barista.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.