Record Class HealingFingerprintObservation

java.lang.Object
java.lang.Record
com.shaft.gui.internal.healing.HealingFingerprintObservation
Record Components:
pageUrl - recorded page URL where the element was captured
originalLocator - locator the generated test will resolve at replay/execution time
action - current action name
fingerprint - recorded element evidence

public record HealingFingerprintObservation(String pageUrl, org.openqa.selenium.By originalLocator, String action, HealingFingerprintSeed fingerprint) extends Record
Recorded element evidence supplied to an optional provider without a live driver or element (issue #4161) -- e.g. generation-time seeding from shaft-capture's already-computed per-element DOM signal, so recorded fingerprint history exists before a generated test is ever replayed.
  • Constructor Details

    • HealingFingerprintObservation

      public HealingFingerprintObservation(String pageUrl, org.openqa.selenium.By originalLocator, String action, HealingFingerprintSeed fingerprint)
      Creates a validated observation.
  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • pageUrl

      public String pageUrl()
      Returns the value of the pageUrl record component.
      Returns:
      the value of the pageUrl record component
    • originalLocator

      public org.openqa.selenium.By originalLocator()
      Returns the value of the originalLocator record component.
      Returns:
      the value of the originalLocator record component
    • action

      public String action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • fingerprint

      public HealingFingerprintSeed fingerprint()
      Returns the value of the fingerprint record component.
      Returns:
      the value of the fingerprint record component