Closed GoogleCodeExporter closed 9 years ago
Not an espresso bug.
Common cases that cause this:
- ANR/crash dialogs from other apps (can be handled on a device setup level.
This is quite involved and is outside the scope of UI test execution)
- soft keyboard is showing (can be handled by adding closeSoftKeyboard action)
You can confirm by observing the test during execution or taking a screenshot
on failure.
Original comment by vale...@google.com
on 14 Jan 2014 at 7:41
I disagree. Would appreciate it you could look more closely at the bug
description I provided or if you could try out the sample application attached.
For instance,
1. closeSoftKeyboard() is being called
2. There are no other dialogs showing
3. Animations are disabled
The attached GIF shows what's happening.
I've had to work around this in my code by adding a sleep after the
closeSoftKeyboard which seems to defeat the purpose of Espresso.
Original comment by daniel.j...@jadedpixel.com
on 14 Jan 2014 at 7:51
The same issue (with the same scenario) is reproducible for me as well? Why the
bug is market as invalid?
Original comment by vitaliy....@gmail.com
on 5 Feb 2014 at 2:59
Having same issue. The soft keyboard is dismissed but the perform click still
fails.
Original comment by a...@spoton.com
on 7 Feb 2014 at 9:25
I'm getting this issue as well, along with ensuring I'm using the
closeSoftKeyboard() method.
And indeed, a wait before the click() fixes it for me, but negates the reason
I'm using Espresso unfortunately.
Even more strange is the fact that a Thread.sleep(1) works.
Original comment by my.name....@gmail.com
on 11 Feb 2014 at 7:24
I can reproduce it as well... just could hack it like said with
Thread.sleep(1000ms) !
Original comment by luserdr...@googlemail.com
on 13 Feb 2014 at 11:48
Confirmed. Same issue with my tests.
Original comment by desire2l...@gmail.com
on 4 Mar 2014 at 7:05
same here :(
Original comment by to.mikek...@gmail.com
on 7 Mar 2014 at 9:54
The same for me. But somehow it worked before. Now I always have this issue.
Maybe it is related to SDK update?
Original comment by denys.ze...@gmail.com
on 3 Apr 2014 at 12:02
I noticed the problem for e-mail field
Original comment by denys.ze...@gmail.com
on 3 Apr 2014 at 12:03
Facing the same issue. Is there a patch or fix for it?
Original comment by adnan.ch...@tigerspike.com
on 8 May 2014 at 7:12
I didn't have to close the soft keyboard a few months ago when I initially
wrote tests using Espresso. Also, using closeSoftKeyboard does not always work
so the test is now flaky. Does anyone know what introduced this issue in the
first place? This is definitely not an invalid issue.
Original comment by james.w...@gmail.com
on 23 Jul 2014 at 9:14
[deleted comment]
I've worked around this issue by writing my own tiny keyboard that is 32dp
tall. It seems to work much better than having the stock keyboard.
https://github.com/johnybot/TestingKeyboard
Original comment by johnatha...@hootsuite.com
on 28 Jul 2014 at 9:34
Have the same problem with espresso-contrib-1.1. In login test scenario after
typeText() and call closeSoftKeyboard() without thread.sleep() it cause
"PerformException: Error performing 'single click' on view". With
thread.sleep() it works. Test on real device (lenovo A7600)
Original comment by v.averja...@crystals.ru
on 16 Sep 2014 at 8:34
I have that issue too on my Panasonic FZ-A1.
Heres how i solved it:
onView(withId(R.id.testEdit)).perform(typeText("Have a cup of Espresso."),
closeSoftKeyboard());
Thread.sleep(1000);
dunno why it works with a sleep, but it works....
Original comment by ein...@googlemail.com
on 22 Oct 2014 at 10:44
[deleted comment]
I can repro it as well. Please fix if you want people to use espresso.
Original comment by ak...@intelius.com
on 26 Dec 2014 at 6:54
#18 Same issue here (New status)
https://code.google.com/p/android-test-kit/issues/detail?id=79
Original comment by ard...@gmail.com
on 28 Dec 2014 at 7:06
I am facing following issue , However the button is clicking during the test
but the following error is showing-
com.proptiger.app.MyEspressoTest > testRegisterButton[GT-I9152 - 4.2.2] FAILED
android.support.test.espresso.PerformException: Error performing 'single click' on view 'with id: com.proptiger:id/register_country_spinner'.
at android.support.test.espresso.PerformException$Builder.build(PerformException.java:83)
Please look into this issue.
Original comment by bhupendr...@proptiger.com
on 19 May 2015 at 9:44
Original issue reported on code.google.com by
daniel.j...@jadedpixel.com
on 14 Jan 2014 at 7:11Attachments: