Record Class TraceEventRecorder.Event
java.lang.Object
java.lang.Record
com.shaft.tools.io.internal.TraceEventRecorder.Event
- Enclosing class:
TraceEventRecorder
public static record TraceEventRecorder.Event(boolean enabled, String id, String category, String name, String startTime, long startNanos, String locator, String url, String caller, String domSnapshotBefore, org.openqa.selenium.WebDriver driver)
extends Record
Active action event handle.
driver is retained only to capture the "after" DOM
snapshot at TraceEventRecorder.finish(TraceEventRecorder.Event, String, String, Throwable, Map, List) time; it is never serialized or exposed outside this class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaller()Returns the value of thecallerrecord component.category()Returns the value of thecategoryrecord component.Returns the value of thedomSnapshotBeforerecord component.org.openqa.selenium.WebDriverdriver()Returns the value of thedriverrecord 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.locator()Returns the value of thelocatorrecord component.name()Returns the value of thenamerecord component.longReturns the value of thestartNanosrecord component.Returns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Event
public Event(boolean enabled, String id, String category, String name, String startTime, long startNanos, String locator, String url, String caller, String domSnapshotBefore, org.openqa.selenium.WebDriver driver) Creates an instance of aEventrecord class.- Parameters:
enabled- the value for theenabledrecord componentid- the value for theidrecord componentcategory- the value for thecategoryrecord componentname- the value for thenamerecord componentstartTime- the value for thestartTimerecord componentstartNanos- the value for thestartNanosrecord componentlocator- the value for thelocatorrecord componenturl- the value for theurlrecord componentcaller- the value for thecallerrecord componentdomSnapshotBefore- the value for thedomSnapshotBeforerecord componentdriver- the value for thedriverrecord component
-
-
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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
startNanos
public long startNanos()Returns the value of thestartNanosrecord component.- Returns:
- the value of the
startNanosrecord component
-
locator
Returns the value of thelocatorrecord component.- Returns:
- the value of the
locatorrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
caller
Returns the value of thecallerrecord component.- Returns:
- the value of the
callerrecord component
-
domSnapshotBefore
Returns the value of thedomSnapshotBeforerecord component.- Returns:
- the value of the
domSnapshotBeforerecord component
-
driver
public org.openqa.selenium.WebDriver driver()Returns the value of thedriverrecord component.- Returns:
- the value of the
driverrecord component
-