diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index 54ebd548..f504dcac 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v4.3.3.2305301203 \ No newline at end of file +v4.3.3.2306081354 \ No newline at end of file diff --git a/hrp/pkg/uixt/ext.go b/hrp/pkg/uixt/ext.go index 44a5e566..440fb242 100644 --- a/hrp/pkg/uixt/ext.go +++ b/hrp/pkg/uixt/ext.go @@ -616,7 +616,12 @@ func (dExt *DriverExt) DoAction(action MobileAction) error { if imagePath, ok := action.Params.(string); ok { return dExt.TapByCV(imagePath, WithDataIdentifier(action.Identifier), WithDataIgnoreNotFoundError(true), WithDataIndex(action.Index)) } - if uiTypes, ok := action.Params.([]string); ok { + if uiParams, ok := action.Params.([]interface{}); ok { + var uiTypes []string + for _, uiParam := range uiParams { + uiType, _ := uiParam.(string) + uiTypes = append(uiTypes, uiType) + } return dExt.TapByUIDetection(uiTypes, WithDataIdentifier(action.Identifier), WithDataIgnoreNotFoundError(true), WithDataIndex(action.Index)) } return fmt.Errorf("invalid %s params: %v", ACTION_TapByCV, action.Params)