feat: Added iOS support

This commit is contained in:
xhguo
2025-12-12 17:58:20 +08:00
parent b2e985a790
commit 7c23ca549b
16 changed files with 2884 additions and 3 deletions

View File

@@ -0,0 +1,47 @@
"""XCTest utilities for iOS device interaction via WebDriverAgent/XCUITest."""
from phone_agent.xctest.connection import (
ConnectionType,
DeviceInfo,
XCTestConnection,
list_devices,
quick_connect,
)
from phone_agent.xctest.device import (
back,
double_tap,
get_current_app,
home,
launch_app,
long_press,
swipe,
tap,
)
from phone_agent.xctest.input import (
clear_text,
type_text,
)
from phone_agent.xctest.screenshot import get_screenshot
__all__ = [
# Screenshot
"get_screenshot",
# Input
"type_text",
"clear_text",
# Device control
"get_current_app",
"tap",
"swipe",
"back",
"home",
"double_tap",
"long_press",
"launch_app",
# Connection management
"XCTestConnection",
"DeviceInfo",
"ConnectionType",
"quick_connect",
"list_devices",
]