diff --git a/packages/patrol/darwin/Classes/AutomatorServer/Automator/IOSAutomator.swift b/packages/patrol/darwin/Classes/AutomatorServer/Automator/IOSAutomator.swift index 1fa590032..bfe9df36a 100644 --- a/packages/patrol/darwin/Classes/AutomatorServer/Automator/IOSAutomator.swift +++ b/packages/patrol/darwin/Classes/AutomatorServer/Automator/IOSAutomator.swift @@ -466,6 +466,8 @@ if toggle.value! as! String == "1" { toggle.tap() + // Disabling wifi can cause a system alert to appear + try self.acceptSystemAlertIfVisible() } else { Logger.shared.i("wifi is already disabled") }