Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 668 Bytes

UpdateSimulator.md

File metadata and controls

23 lines (21 loc) · 668 Bytes

Update status bar of a simulator

Destination is used to identifer a simulator, this should be run before taking screenshots

UpdateSimulator {
   $0.updateStatusBar(
       destination: .init(
           name: Destination.Name.iPhoneX,
           platform: Destination.Platform.iOSSimulator,
           os: Destination.OS.iOS13_2_2       
       ),
       time: "9:41",
       dataNetwork: .wifi,
       wifiMode: WifiMode = .active,
       wifiBars: String = "3",
       cellularMode: CellularMode = .active,
       cellularBars: String = "4",
       batteryState: BatteryState = .charged,
       batteryLevel: String = "97"
   )
}