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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -