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
Post a Comment