Record Class LocatorFingerprint

java.lang.Object
java.lang.Record
com.shaft.heal.model.LocatorFingerprint
Record Components:
schemaVersion - fingerprint schema version
tagName - element tag name
accessibleName - computed accessible name
associatedLabel - associated label text
visibleText - bounded visible text
id - stable ID
name - stable name
role - accessible role
type - semantic type
placeholder - placeholder text
title - title text
testIds - configured test ID attributes
semanticAttributes - other permitted semantic attributes
domPathChecksum - checksum of the structural DOM path
platform - evidence platform
nativeAttributes - permitted native accessibility attributes
bounds - bounded element rectangle
displayed - whether the element was displayed
enabled - whether the element was enabled
selected - whether the element was selected
ancestorChecksum - checksum of stable bounded ancestor evidence

public record LocatorFingerprint(String schemaVersion, String tagName, String accessibleName, String associatedLabel, String visibleText, String id, String name, String role, String type, String placeholder, String title, Map<String,String> testIds, Map<String,String> semanticAttributes, String domPathChecksum, HealingPlatform platform, Map<String,String> nativeAttributes, String bounds, boolean displayed, boolean enabled, boolean selected, String ancestorChecksum) extends Record
Privacy-minimized semantic fingerprint for a verified web or native element.
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schemaVersion

      public String schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • tagName

      public String tagName()
      Returns the value of the tagName record component.
      Returns:
      the value of the tagName record component
    • accessibleName

      public String accessibleName()
      Returns the value of the accessibleName record component.
      Returns:
      the value of the accessibleName record component
    • associatedLabel

      public String associatedLabel()
      Returns the value of the associatedLabel record component.
      Returns:
      the value of the associatedLabel record component
    • visibleText

      public String visibleText()
      Returns the value of the visibleText record component.
      Returns:
      the value of the visibleText record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • role

      public String role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • placeholder

      public String placeholder()
      Returns the value of the placeholder record component.
      Returns:
      the value of the placeholder record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • testIds

      public Map<String,String> testIds()
      Returns the value of the testIds record component.
      Returns:
      the value of the testIds record component
    • semanticAttributes

      public Map<String,String> semanticAttributes()
      Returns the value of the semanticAttributes record component.
      Returns:
      the value of the semanticAttributes record component
    • domPathChecksum

      public String domPathChecksum()
      Returns the value of the domPathChecksum record component.
      Returns:
      the value of the domPathChecksum record component
    • platform

      public HealingPlatform platform()
      Returns the value of the platform record component.
      Returns:
      the value of the platform record component
    • nativeAttributes

      public Map<String,String> nativeAttributes()
      Returns the value of the nativeAttributes record component.
      Returns:
      the value of the nativeAttributes record component
    • bounds

      public String bounds()
      Returns the value of the bounds record component.
      Returns:
      the value of the bounds record component
    • displayed

      public boolean displayed()
      Returns the value of the displayed record component.
      Returns:
      the value of the displayed record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • selected

      public boolean selected()
      Returns the value of the selected record component.
      Returns:
      the value of the selected record component
    • ancestorChecksum

      public String ancestorChecksum()
      Returns the value of the ancestorChecksum record component.
      Returns:
      the value of the ancestorChecksum record component