session/local/widget_locator_id library

Functions

ancestorClaimsLocatorId(Element element, String id) → bool
True when an ancestor already claims id via testId ValueKey or Invokable.
compactWidgetLocatorId(String value) → String
Compact authoring id, or empty if not usable as a YAML id: / key.
finderForLocatorId(String id, {bool skipOffstage = true}) → Finder
Finder for YAML id: / testId: steps — ValueKey only.
hasCompactValueKey(Element element) → bool
True when element itself carries a compact string ValueKey (testId).
isStructuralPageShell(Element element, String id, {Size? viewport, String? routeName}) → bool
Route-named or ~full-viewport keyed host (Ensemble screen KeyedSubtree).
nearestDescendantValueKeyLocatorId(Element element) → String?
Depth-first: first compact ValueKey under element (not on element).
nearestExclusiveKeyedWrapperId(Element element, {Size? viewport, String? routeName}) → String?
Nearest keyed/Invokable ancestor that wraps only this element's lineage (no other keyed widgets under the same wrapper).
nearestOwnedLocatorIdAncestor(Element element) → String?
Nearest ancestor (not element itself) that owns a locator id.
observeLocatorId(Element element, {Size? viewport, String? routeName}) → String?
Locator id for observe / failure Observer rows.
readInvokableLocatorId(Element element) → String?
YAML id: from an Invokable mixed onto element's widget, if any.
readOwnedWidgetLocatorId(Element element) → String?
Id attached specifically to element (observe / hints).
readValueKeyLocatorId(Element element) → String?
Compact string ValueKey on element itself (= Ensemble testId).
readWidgetLocatorId(Element element) → String?
Locator id for YAML testId: / id: as shown on an observed control.