scrollContainer
fun SemanticsNodeInteractionsProvider.scrollContainer(vertical: Boolean = true): SemanticsNodeInteraction(source)
Returns the largest scrollable node on the given axis.
Choosing by axis keeps a nested horizontal carousel from absorbing a vertical scroll, and choosing by area picks the screen's main list. Scrolling through the returned node uses semantics actions, which work even when a lazy list reports zero-size bounds.
Return
The container.
Parameters
vertical
Whether to look for a vertical (true) or horizontal scroll container.
Throws
when the screen has no scrollable node on that axis.