callOnClick

fun callOnClick(): ViewAction

A ViewAction similar to ViewActions.click, which calls a view's OnClickListener without emitting a touch event. While normally using a touch event is preferred to simulate real user scenarios, there may be situations where touch events have unintended side-effects. In these cases, this action may be used instead.