Record Class HealingActionOutcome
java.lang.Object
java.lang.Record
com.shaft.gui.internal.healing.HealingActionOutcome
- Record Components:
driver- active driverattemptId- healing attempt identifieroriginalLocator- failed original locatorselectedLocator- selected replacement locatoraction- action namesuccessful- whether the action completedverification- post-action verification or explicit unverifiable resultfailure- safe failure category or empty text
public record HealingActionOutcome(org.openqa.selenium.WebDriver driver, String attemptId, org.openqa.selenium.By originalLocator, org.openqa.selenium.By selectedLocator, String action, boolean successful, String verification, String failure)
extends Record
Outcome of an action that used a recovered element.
-
Constructor Summary
ConstructorsConstructorDescriptionHealingActionOutcome(org.openqa.selenium.WebDriver driver, String attemptId, org.openqa.selenium.By originalLocator, org.openqa.selenium.By selectedLocator, String action, boolean successful, String verification, String failure) Creates a validated outcome. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theattemptIdrecord component.org.openqa.selenium.WebDriverdriver()Returns the value of thedriverrecord component.final booleanIndicates whether some other object is "equal to" this one.failure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.org.openqa.selenium.ByReturns the value of theoriginalLocatorrecord component.org.openqa.selenium.ByReturns the value of theselectedLocatorrecord component.booleanReturns the value of thesuccessfulrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverificationrecord component.
-
Constructor Details
-
HealingActionOutcome
-
-
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. -
driver
-
attemptId
-
originalLocator
public org.openqa.selenium.By originalLocator()Returns the value of theoriginalLocatorrecord component.- Returns:
- the value of the
originalLocatorrecord component
-
selectedLocator
public org.openqa.selenium.By selectedLocator()Returns the value of theselectedLocatorrecord component.- Returns:
- the value of the
selectedLocatorrecord component
-
action
-
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
verification
Returns the value of theverificationrecord component.- Returns:
- the value of the
verificationrecord component
-
failure
-