Sleep Method (MobileDevice)
Class
MobileDevice
class
Action
Presses the power button if the screen is on. This method is not supported on iOS.
Syntax
device
.
Sleep
()