Skip to content

let your agent control your phone

The fake cloud host lists apps.launch, as the live one does

ShawnPana9f62e269f2cb
diff --git a/tests/test_cloud.py b/tests/test_cloud.py
index 59d5788..446c7b3 100644
--- a/tests/test_cloud.py
+++ b/tests/test_cloud.py
@@ -244,7 +244,7 @@ class FakeControl(BaseHTTPRequestHandler):
# nav.back is advertised so the client actually POSTs it; the op
# answer below is the unsupported 400 the live iPhone returns.
return self._send(200, {"ops": ["screen.capture", "screen.bounds", "input.tap",
- "nav.home", "nav.back"]})
+ "nav.home", "nav.back", "apps.launch"]})
if self.path == "/op":
FakeControl.calls.append(body)
op = body["op"]