session/local/observed_element_tree
library
Functions
-
absorbFormFieldLabels(List<({Element element, UiElement ui})> kept)
→ List<({Element element, UiElement ui})>
-
Fold nearby standalone label Text into form controls and drop duplicates.
-
buildObservedElementTree({required WidgetTester tester, required AssertionEngine assertions, NavigationTestService? navigation, required bool includeBounds, bool keyedOnly = false, bool enableSemantics = true, bool useSemantics = true, bool registerRouteDependency = true})
→ ({List<UiElement> elements, Map<String, SnapshotElementHandle> handles})
-
Builds the kept observe element tree from the live Flutter element walk.
-
dropRedundantNestedObserveLeaves(List<({Element element, UiElement ui})> kept)
→ List<({Element element, UiElement ui})>
-
Drop host/leaf duplicates that survived the keep walk.
-
labelAssociationScore(UiBounds text, UiBounds control)
→ double?
-
Lower is better; null when the text is not a plausible label for
control.
-
nestKeptElements(List<({Element element, UiElement ui})> kept)
→ List<UiElement>
-
Nests kept nodes under their nearest kept Flutter ancestor.