INSTRUMENTATION_STATUS: test=testDialogTitle INSTRUMENTATION_STATUS_CODE: 1 INSTRUMENTATION_STATUS: class=de.dotwee.micropinner.view.MainDialogParentPinTest INSTRUMENTATION_STATUS: current=18 INSTRUMENTATION_STATUS: id=AndroidJUnitRunner INSTRUMENTATION_STATUS: numtests=23 INSTRUMENTATION_STATUS: stack=java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Root: Root{application-window-token=android.view.ViewRootImpl$W@bdf6fb6, window-token=android.view.ViewRootImpl$W@bdf6fb6, has-window-focus=false, layout-params-type=1, layout-params-string={(0,0)(wrapxwrap) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x7f0d0002 fl=DIM_BEHIND SPLIT_TOUCH HARDWARE_ACCELERATED}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=320, height=343, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params={(0,0)(wrapxwrap) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x7f0d0002 fl=DIM_BEHIND SPLIT_TOUCH HARDWARE_ACCELERATED}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} at android.support.test.espresso.base.RootViewPicker.waitForRootToBeReady(RootViewPicker.java:105) at android.support.test.espresso.base.RootViewPicker.pickRootView(RootViewPicker.java:142) at android.support.test.espresso.base.RootViewPicker.get(RootViewPicker.java:86) at android.support.test.espresso.ViewInteractionModule.provideRootView(ViewInteractionModule.java:76) at android.support.test.espresso.ViewInteractionModule_ProvideRootViewFactory.get(ViewInteractionModule_ProvideRootViewFactory.java:25) at android.support.test.espresso.ViewInteractionModule_ProvideRootViewFactory.get(ViewInteractionModule_ProvideRootViewFactory.java:10) at android.support.test.espresso.base.ViewFinderImpl.getView(ViewFinderImpl.java:64) at android.support.test.espresso.ViewInteraction$2.call(ViewInteraction.java:266) at android.support.test.espresso.ViewInteraction$2.call(ViewInteraction.java:258) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) INSTRUMENTATION_STATUS: stream= Error in testDialogTitle(de.dotwee.micropinner.view.MainDialogParentPinTest): java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Root: Root{application-window-token=android.view.ViewRootImpl$W@bdf6fb6, window-token=android.view.ViewRootImpl$W@bdf6fb6, has-window-focus=false, layout-params-type=1, layout-params-string={(0,0)(wrapxwrap) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x7f0d0002 fl=DIM_BEHIND SPLIT_TOUCH HARDWARE_ACCELERATED}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=320, height=343, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params={(0,0)(wrapxwrap) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x7f0d0002 fl=DIM_BEHIND SPLIT_TOUCH HARDWARE_ACCELERATED}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}} at android.support.test.espresso.base.RootViewPicker.waitForRootToBeReady(RootViewPicker.java:105) at android.support.test.espresso.base.RootViewPicker.pickRootView(RootViewPicker.java:142) at android.support.test.espresso.base.RootViewPicker.get(RootViewPicker.java:86) at android.support.test.espresso.ViewInteractionModule.provideRootView(ViewInteractionModule.java:76) at android.support.test.espresso.ViewInteractionModule_ProvideRootViewFactory.get(ViewInteractionModule_ProvideRootViewFactory.java:25) at android.support.test.espresso.ViewInteractionModule_ProvideRootViewFactory.get(ViewInteractionModule_ProvideRootViewFactory.java:10) at android.support.test.espresso.base.ViewFinderImpl.getView(ViewFinderImpl.java:64) at android.support.test.espresso.ViewInteraction$2.call(ViewInteraction.java:266) at android.support.test.espresso.ViewInteraction$2.call(ViewInteraction.java:258) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)