waitForContentDescription
fun ComposeUiTest.waitForContentDescription(description: String, timeout: Duration = DefaultUiTimeout, useUnmergedTree: Boolean = false): SemanticsNodeInteraction(source)
Waits until a node with content description description is displayed and returns it.
Return
The displayed node.
Parameters
description
The exact content description.
timeout
The nonnegative wait budget.
useUnmergedTree
Whether to search the unmerged semantics tree.
fun ComposeTestRule.waitForContentDescription(description: String, timeout: Duration = DefaultUiTimeout, useUnmergedTree: Boolean = false): SemanticsNodeInteraction(source)
Waits until a node with content description description is displayed and returns it.
Return
The displayed node.
Parameters
description
The exact content description.
timeout
The nonnegative wait budget.
useUnmergedTree
Whether to search the unmerged semantics tree.