performCustomAccessibilityActionWithLabel
Function
Common
@ExperimentalTestApi
fun SemanticsNodeInteraction.performCustomAccessibilityActionWithLabel(
label: String
): SemanticsNodeInteraction
Finds the CustomAccessibilityAction
in the node's CustomActions
list whose label is equal to
label
and then invokes it.
To use your own logic to find the action to perform instead of matching on the full label, use
performCustomAccessibilityActionWithLabelMatching
.
Parameters
label | The exact label of the CustomAccessibilityAction to perform. |