@@ -93,7 +93,6 @@ const (
9393type AXElementData struct {
9494 PlatformElementValue string `json:"platformElementValue"` // Base64-encoded platform element data
9595 SpokenDescription string `json:"spokenDescription"` // Spoken description of the element
96- CaptionText string `json:"captionText"` // CaptionTextValue_v1 extracted value
9796}
9897
9998func (a * ControlInterface ) readhostAppStateChanged () {
@@ -269,7 +268,6 @@ func (a *ControlInterface) Move(ctx context.Context, direction MoveDirection) (A
269268 }
270269
271270 spokenDescription := a .extractSpokenDescription (innerValue )
272- captionText := a .extractCaptionText (innerValue )
273271 platformElementBytes , err := a .extractPlatformElementBytes (innerValue )
274272 if err != nil {
275273 return AXElementData {}, err
@@ -278,7 +276,6 @@ func (a *ControlInterface) Move(ctx context.Context, direction MoveDirection) (A
278276 return AXElementData {
279277 PlatformElementValue : base64 .StdEncoding .EncodeToString (platformElementBytes ),
280278 SpokenDescription : spokenDescription ,
281- CaptionText : captionText ,
282279 }, nil
283280}
284281
@@ -296,20 +293,6 @@ func (a *ControlInterface) extractSpokenDescription(innerValue map[string]interf
296293 return ""
297294}
298295
299- // extractCaptionText extracts CaptionTextValue_v1 from innerValue
300- func (a * ControlInterface ) extractCaptionText (innerValue map [string ]interface {}) string {
301- if capRaw , ok := innerValue ["CaptionTextValue_v1" ]; ok {
302- val := deserializeObject (capRaw )
303- if s , ok := val .(string ); ok && s != "" {
304- return s
305- }
306- if val != nil {
307- return fmt .Sprintf ("%v" , val )
308- }
309- }
310- return ""
311- }
312-
313296// QueryAttributeValue queries any string attribute (Label, Identifier, Value, etc.) for an element
314297// Uses 500ms timeout to prevent hanging if device doesn't respond
315298func (a * ControlInterface ) QueryAttributeValue (platformElementValue string , attributeName string ) (string , error ) {
0 commit comments