onView(withId(R.id.takeControl)).check(matches(withText(R.string.intro_slogan2)))// intro_welcome is the first fragment, check first if the String Resource "intro_slogan2" is shown.
// click through up to 5 intro fragments
for(iin1..5)
try{
onView(withId(R.id.next)).perform(click())
}catch(ignored:Exception){}
onView(withId(R.id.done)).perform(click())
}catch(ignored:NoMatchingViewException){
// the IntroActivity or some fragments of it may not show up every time