fix: init wda driver

This commit is contained in:
lilong.129
2025-02-17 17:50:41 +08:00
parent 29c0e1cbef
commit 3ae314d0ba
5 changed files with 36 additions and 25 deletions

View File

@@ -2,6 +2,30 @@ package types
import "fmt"
// DeviceStatus example:
//
// {
// "status": 0,
// "sessionId": "7DD3B0F7-958B-45F1-B99D-745B4EEFE178",
// "value": {
// "message": "WebDriverAgent is ready to accept commands",
// "state": "success",
// "os": {
// "testmanagerdVersion": 28,
// "name": "iOS",
// "sdkVersion": "16.0",
// "version": "15.3.1"
// },
// "ios": {
// "ip": "169.254.237.64"
// },
// "ready": true,
// "build": {
// "time": "Jun 21 2024 11:11:37",
// "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
// }
// }
// }
type DeviceStatus struct {
Message string `json:"message"`
State string `json:"state"`