This Question have no Text answers yet!

Espresso throws error when clicking on fullscreen view with Samsuns Galaxy S3

By : HowieH
Source: Stackoverflow.com
Question!

I try to click on a fullscreen view with espresso, like this:

onView(withId(R.id.id)).perform(click());

But gets this error:

Error performing 'Send down montion event' on view 'unknown'

...

Caused by: android.support.test.espresso.InjectEventSecurityException: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

When I run the test on other devices, such as Nexus 6 and S4, the test runs fine, but on Samsung Galaxy S3 it throws this exception.

By : HowieH


Video about Espresso throws error when clicking on fullscreen view with Samsuns Galaxy S3