Git Product home page Git Product logo

Comments (7)

0xGuybrush avatar 0xGuybrush commented on June 1, 2024 8

I know this is really dragging up a zombie thread, but I'm hitting the same issue now with androidx.test.espresso:espresso-core:3.2.0 testing on Android 10 emulator.

It's an intermittent failure only (occurring on CI) leading to:

androidx.test.espresso.PerformException: Error performing 'single click' on view 'with string from resource id [X]

Screenshots on failure can show me the soft keyboard still open blocking the button trying to be clicked.

Does anyone have any idea what the workaround mentioned above is/was?

Tried to track it down, but the link about goes to a page "android-test-kit has Moved!" — which gives a link to google.github.io/android-testing-support-library, which then gives a 404.

Old Google Groups which mentioned the issue seem to have been taking offline too.

from testing-samples.

otw avatar otw commented on June 1, 2024

Thanks for reporting this, i'm looking into it!

from testing-samples.

bootstraponline avatar bootstraponline commented on June 1, 2024

👍 I found this work around for now.

from testing-samples.

JoseAlcerreca avatar JoseAlcerreca commented on June 1, 2024

Let's close this issue (as it's not a samples problem). Follow the bug at https://code.google.com/p/android-test-kit/issues/detail?id=79#c7

from testing-samples.

piotrek1543 avatar piotrek1543 commented on June 1, 2024

Hi,

I also had problems with opened soft keyboard, not only on Nexus devices. I solved that by adding a method like this

@Before
public void setup() {
closeSoftKeyboard();
}

Wish it might be helpful for someone.

@JoseAlcerreca, @bootstraponline your links are broken.

from testing-samples.

ardock avatar ardock commented on June 1, 2024

Hello,

solved on last version

Bug Fixes Espresso 2.2.1, Runner/Rules 0.4 (2015-09-14)
espresso
79: ViewActions#closeSoftKeyboard() does ensure that soft keyboard is completely gone

from testing-samples.

piotrek1543 avatar piotrek1543 commented on June 1, 2024

Thanks @ardock

from testing-samples.

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.