Issue
There is click()
and longClick()
in ViewAction
class in androidx.test.espresso.action.
How can I create the same longClick()
but with custom click time?
Solution
You have to implement your custom Tap
enum similar to androidx.test.espresso.action.Tap
enum. Declare your custom tap action inside and update this line long longPressTimeout = (long) (ViewConfiguration.getLongPressTimeout() * 1.5f);
with your time.
Then create a custom click action that will use your custom tap.
Answered By - denys
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.