swift - Simulating Pressing the Home button in xCode 7 UI Automation -


i've got down to:

xcuidevice.pressbutton(noideawhatgoeshere) 

i've tried xcuidevicebuttonhome, home, home, 1

not sure how simulate pressing home button, have pointers? i'm new xcode/swift

you need device instance first. simulate pressing home button:

xcuidevice.shareddevice().pressbutton(xcuidevicebutton.home) 

should work (it me on physical device)

thanks!

mazen


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -