feat: check android uiautomator server package installed

This commit is contained in:
lilong.129
2024-10-11 20:57:09 +08:00
parent 7506ebcb3b
commit 37cbfacc2d
6 changed files with 45 additions and 13 deletions

View File

@@ -77,6 +77,8 @@ var (
// UI automation related: [70, 80)
var (
MobileUIDriverAppNotInstalled = errors.New("mobile UI driver app not installed") // 68
MobileUIDriverAppCrashed = errors.New("mobile UI driver app crashed") // 69
MobileUIDriverError = errors.New("mobile UI driver error") // 70
MobileUILaunchAppError = errors.New("mobile UI launch app error") // 71
MobileUITapError = errors.New("mobile UI tap error") // 72
@@ -168,6 +170,8 @@ var errorsMap = map[error]int{
DeviceUIResponseSlow: 67,
// UI automation related
MobileUIDriverAppNotInstalled: 68,
MobileUIDriverAppCrashed: 69,
MobileUIDriverError: 70,
MobileUILaunchAppError: 71,
MobileUITapError: 72,