Record Class HealingRequest
java.lang.Object
java.lang.Record
com.shaft.gui.internal.healing.HealingRequest
- Record Components:
driver- active driveroriginalLocator- failed original locatoraction- intended action namevisibilityRequired- whether the selected element must be visible and enabledframeLocator- active frame locator, when applicableshadowHostLocator- active shadow host locator, when applicableshadowContentLocator- active shadow content locator, when applicable
public record HealingRequest(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By originalLocator, String action, boolean visibilityRequired, org.openqa.selenium.By frameLocator, org.openqa.selenium.By shadowHostLocator, org.openqa.selenium.By shadowContentLocator)
extends Record
Locator-not-found request passed to an optional SHAFT Heal provider.
-
Constructor Summary
ConstructorsConstructorDescriptionHealingRequest(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By originalLocator, String action, boolean visibilityRequired, org.openqa.selenium.By frameLocator, org.openqa.selenium.By shadowHostLocator, org.openqa.selenium.By shadowContentLocator) Creates a validated request. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.org.openqa.selenium.WebDriverdriver()Returns the value of thedriverrecord 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.booleanReturns the value of thevisibilityRequiredrecord component.
-
Constructor Details
-
HealingRequest
public HealingRequest(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By originalLocator, String action, boolean visibilityRequired, org.openqa.selenium.By frameLocator, org.openqa.selenium.By shadowHostLocator, org.openqa.selenium.By shadowContentLocator) Creates a validated request.
-
-
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
-
originalLocator
public org.openqa.selenium.By originalLocator()Returns the value of theoriginalLocatorrecord component.- Returns:
- the value of the
originalLocatorrecord component
-
action
-
visibilityRequired
public boolean visibilityRequired()Returns the value of thevisibilityRequiredrecord component.- Returns:
- the value of the
visibilityRequiredrecord component
-
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
-