Record Class McpMobileRecordedAction
java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileRecordedAction
- Record Components:
stepId- stable identity assigned once at record time; never changes and never reused, even afterMcpMobileRecordingService.deleteStep(String). Recordings persisted before schema 1.1 lack this field; it is backfilled to"m" + sequenceon read (seeMcpMobileRecordingService)uniquenessCount- number of live elements the recorded locator matched at the moment the action executed, or0when no live page was available to check (e.g. mobile/Appium recordings, or any Playwright action that is not locator-bearing). Issue #4273: computed from the real Playwright driver byPlaywrightService, never fabricated.locatorStable- whether the recorded locator looks human-authored rather than framework-generated, orfalsewhen unverified. Issue #4273: forID-strategy Playwright locators this reusesLocatorPolicy.looksAutoGenerated; every other strategy/model reportsfalse(unverified), matching this surface's pre-existing honest-refusal default.replayXpath- a self-verified relative XPath the live driver independently confirmed matches exactly one element, or blank when none was computed/confirmed. Issue #4262: computed byPlaywrightServiceforXPATH-strategy (the recorded value itself, once confirmed unique) andNAME-strategy (a constructed//*[@name="..."]expression, independently re-verified live) recordings; every other strategy/model reports blank (unverified), matching this surface's pre-existing honest-refusal default.
public record McpMobileRecordedAction(String stepId, long sequence, String timestamp, String action, String locatorStrategy, String locatorValue, Map<String,String> parameters, String javaCode, boolean sensitiveValueStored, List<String> warnings, int uniquenessCount, boolean locatorStable, String replayXpath)
extends Record
Persisted MCP mobile action for deterministic replay generation.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpMobileRecordedAction(String stepId, long sequence, String timestamp, String action, String locatorStrategy, String locatorValue, Map<String, String> parameters, String javaCode, boolean sensitiveValueStored, List<String> warnings, int uniquenessCount, boolean locatorStable, String replayXpath) Creates an immutable recorded action. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.javaCode()Returns the value of thejavaCoderecord component.booleanReturns the value of thelocatorStablerecord component.Returns the value of thelocatorStrategyrecord component.Returns the value of thelocatorValuerecord component.Returns the value of theparametersrecord component.Returns the value of thereplayXpathrecord component.booleanReturns the value of thesensitiveValueStoredrecord component.longsequence()Returns the value of thesequencerecord component.stepId()Returns the value of thestepIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theuniquenessCountrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpMobileRecordedAction
public McpMobileRecordedAction(String stepId, long sequence, String timestamp, String action, String locatorStrategy, String locatorValue, Map<String, String> parameters, String javaCode, boolean sensitiveValueStored, List<String> warnings, int uniquenessCount, boolean locatorStable, String replayXpath) Creates an immutable recorded action.
-
-
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. -
stepId
-
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
locatorStrategy
Returns the value of thelocatorStrategyrecord component.- Returns:
- the value of the
locatorStrategyrecord component
-
locatorValue
Returns the value of thelocatorValuerecord component.- Returns:
- the value of the
locatorValuerecord component
-
parameters
-
javaCode
Returns the value of thejavaCoderecord component.- Returns:
- the value of the
javaCoderecord component
-
sensitiveValueStored
public boolean sensitiveValueStored()Returns the value of thesensitiveValueStoredrecord component.- Returns:
- the value of the
sensitiveValueStoredrecord component
-
warnings
-
uniquenessCount
public int uniquenessCount()Returns the value of theuniquenessCountrecord component.- Returns:
- the value of the
uniquenessCountrecord component
-
locatorStable
public boolean locatorStable()Returns the value of thelocatorStablerecord component.- Returns:
- the value of the
locatorStablerecord component
-
replayXpath
Returns the value of thereplayXpathrecord component.- Returns:
- the value of the
replayXpathrecord component
-