ViewInteraction button3 = onView(
                allOf(withId(R.id.modeSwitch),
                        childAtPosition(
                                allOf(withId(R.id.linLayout1),
                                        childAtPosition(