Class PickedLocatorSnippetBuilder
java.lang.Object
com.shaft.capture.control.PickedLocatorSnippetBuilder
Renders a single copy-paste
SHAFT.GUI.Locator... (or By...) Java expression for
one picked locator candidate, for the live "Pick Locator" flow (see
CaptureControlServer#pickLocator). Deliberately simpler than
com.shaft.capture.generate.CaptureGenerator's codegen-time locator rendering (which also
has access to the target's semantic role/label/input-vs-clickable classification to prefer
inputField(...)/clickableField(...)): this builder only sees the picked
candidate itself, since a live pick has no surrounding recorded scenario to classify against.-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringsnippet(LocatorCandidate candidate) Renders one candidate as a copy-paste Java locator expression.
-
Method Details
-
snippet
Renders one candidate as a copy-paste Java locator expression.- Parameters:
candidate- picked locator candidate- Returns:
SHAFT.GUI.Locator...orBy...Java expression
-