Record Class HealingObservation
java.lang.Object
java.lang.Record
com.shaft.gui.internal.healing.HealingObservation
- Record Components:
driver- active driveroriginalLocator- locator that resolved successfullyelement- unique resolved elementaction- current action nameframeLocator- active frame locator, when applicableshadowHostLocator- active shadow host locator, when applicableshadowContentLocator- active shadow content locator, when applicable
public record HealingObservation(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By originalLocator, org.openqa.selenium.WebElement element, String action, org.openqa.selenium.By frameLocator, org.openqa.selenium.By shadowHostLocator, org.openqa.selenium.By shadowContentLocator)
extends Record
Successfully resolved element evidence supplied to an optional provider.
-
Constructor Summary
ConstructorsConstructorDescriptionHealingObservation(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By originalLocator, org.openqa.selenium.WebElement element, String action, org.openqa.selenium.By frameLocator, org.openqa.selenium.By shadowHostLocator, org.openqa.selenium.By shadowContentLocator) Creates a validated observation. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.org.openqa.selenium.WebDriverdriver()Returns the value of thedriverrecord component.org.openqa.selenium.WebElementelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.org.openqa.selenium.ByReturns the value of theframeLocatorrecord 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 theshadowContentLocatorrecord component.org.openqa.selenium.ByReturns the value of theshadowHostLocatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HealingObservation
public HealingObservation(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By originalLocator, org.openqa.selenium.WebElement element, String action, org.openqa.selenium.By frameLocator, org.openqa.selenium.By shadowHostLocator, org.openqa.selenium.By shadowContentLocator) Creates a validated observation.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
driver
-
originalLocator
public org.openqa.selenium.By originalLocator()Returns the value of theoriginalLocatorrecord component.- Returns:
- the value of the
originalLocatorrecord component
-
element
-
action
-
frameLocator
public org.openqa.selenium.By frameLocator()Returns the value of theframeLocatorrecord component.- Returns:
- the value of the
frameLocatorrecord component
-
shadowHostLocator
public org.openqa.selenium.By shadowHostLocator()Returns the value of theshadowHostLocatorrecord component.- Returns:
- the value of the
shadowHostLocatorrecord component
-
shadowContentLocator
public org.openqa.selenium.By shadowContentLocator()Returns the value of theshadowContentLocatorrecord component.- Returns:
- the value of the
shadowContentLocatorrecord component
-