Record Class LocatorFingerprint
java.lang.Object
java.lang.Record
com.shaft.heal.model.LocatorFingerprint
- Record Components:
schemaVersion- fingerprint schema versiontagName- element tag nameaccessibleName- computed accessible nameassociatedLabel- associated label textvisibleText- bounded visible textid- stable IDname- stable namerole- accessible roletype- semantic typeplaceholder- placeholder texttitle- title texttestIds- configured test ID attributessemanticAttributes- other permitted semantic attributesdomPathChecksum- checksum of the structural DOM pathplatform- evidence platformnativeAttributes- permitted native accessibility attributesbounds- bounded element rectangledisplayed- whether the element was displayedenabled- whether the element was enabledselected- whether the element was selectedancestorChecksum- 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocatorFingerprint(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) Creates a backward-compatible web fingerprint.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) Creates an immutable fingerprint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessibleNamerecord component.Returns the value of theancestorChecksumrecord component.Returns the value of theassociatedLabelrecord component.bounds()Returns the value of theboundsrecord component.booleanReturns the value of thedisplayedrecord component.Returns the value of thedomPathChecksumrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of thenativeAttributesrecord component.Returns the value of theplaceholderrecord component.platform()Returns the value of theplatformrecord component.role()Returns the value of therolerecord component.Returns the value of theschemaVersionrecord component.booleanselected()Returns the value of theselectedrecord component.Returns the value of thesemanticAttributesrecord component.tagName()Returns the value of thetagNamerecord component.testIds()Returns the value of thetestIdsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of thevisibleTextrecord component.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
LocatorFingerprint
public 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) Creates a backward-compatible web fingerprint. -
LocatorFingerprint
public 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) Creates an immutable fingerprint.
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
tagName
-
accessibleName
Returns the value of theaccessibleNamerecord component.- Returns:
- the value of the
accessibleNamerecord component
-
associatedLabel
Returns the value of theassociatedLabelrecord component.- Returns:
- the value of the
associatedLabelrecord component
-
visibleText
Returns the value of thevisibleTextrecord component.- Returns:
- the value of the
visibleTextrecord component
-
id
-
name
-
role
-
type
-
placeholder
Returns the value of theplaceholderrecord component.- Returns:
- the value of the
placeholderrecord component
-
title
-
testIds
-
semanticAttributes
Returns the value of thesemanticAttributesrecord component.- Returns:
- the value of the
semanticAttributesrecord component
-
domPathChecksum
Returns the value of thedomPathChecksumrecord component.- Returns:
- the value of the
domPathChecksumrecord component
-
platform
-
nativeAttributes
Returns the value of thenativeAttributesrecord component.- Returns:
- the value of the
nativeAttributesrecord component
-
bounds
-
displayed
-
enabled
-
selected
-
ancestorChecksum
Returns the value of theancestorChecksumrecord component.- Returns:
- the value of the
ancestorChecksumrecord component
-