android / android/android-test

Espresso: [FR] - Implement Drag and Drop API

Open
#228 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

It would be nice if we have any framework methods to do drag and drop in espresso. As of now, we only have swipe gesture in espresso. If I try actions with longclick() and swipe() to drag a view, getting the following exception.

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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Espresso's existing swipe gesture API and the reported InjectEventSecurityException. Done means defining and implementing a framework-level drag-and-drop API that addresses the limitation described in the issue, with coverage for the relevant gesture behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.