You should either use a static import:
import static android.support.test.espresso.Espresso.onView;
or
import android.support.test.espresso.Espresso;
and call it in the following way
Espresso.onView()
You should either use a static import:
import static android.support.test.espresso.Espresso.onView;
or
import android.support.test.espresso.Espresso;
and call it in the following way
Espresso.onView()