summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/activity/utils/ViewUtils.java
blob: 9ba02f8e6a4a56101c4f6614f50c08eeca1b1942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.mapbox.mapboxsdk.activity.utils;

import android.support.annotation.IdRes;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.matcher.ViewMatchers.withId;

public class ViewUtils {

    public static void clickView(@IdRes int viewRes) {
        onView(withId(viewRes))
                .perform(click());
    }
}