Sleep Method (MobileDevice)

Action

Presses the power button if the screen is on. This method is not supported on iOS.

Syntax

device.Sleep()