How to wake up test device with Espresso

307 views
Skip to first unread message

johan....@viaplay.com

unread,
Apr 12, 2016, 2:32:47 AM4/12/16
to Android Testing Support Library
I've seen several suggestions on how to wake up a device when doing UI tests with Espresso (e.g. setting WindowManager layout flags etc.). The only suggestion that worked (for me) was to call UiDevice's wakeUp() available in the uiautomator library.

My question however is if there's any preferred way of doing this operation when it comes to testing with Espresso?

astro...@gmail.com

unread,
Jun 19, 2016, 8:24:03 PM6/19/16
to Android Testing Support Library
Yeah, this is a bit late, but in case anyone else runs into this issue, layout flags thing is the way to go. I put some example code at https://github.com/circleci/circleci-docs/pull/185 .
Reply all
Reply to author
Forward
0 new messages