Monthly Archives: January 2016 Error performing ‘single click’

I encounter the following exception while writing the Espresso test case which involve entering text into edittext component. From what I can tell is the window loses focus and system cant find the next view for action that needs to be process. As a result, after I tell the Espresso framework to enter text, I post a closeKeyboard api to the same edittext so it can be close and Espresso framework able to find the next onView ID.

Error: Error performing ‘single click’….

Workaround: onView(withId(,typeText(“xxxxx”));
//…. next edittext entry

* Please post comments if anyone has a better solution to this.