🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

performCustomAccessibilityActionWithLabel

Finds the CustomAccessibilityAction in the node's CustomActions list whose label is equal to label and then invokes it.

performCustomAccessibilityActionWithLabel

Source set: Common
public 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.

Throws: AssertionError

If no SemanticsNode is found, or no CustomAccessibilityAction has label, or more than one CustomAccessibilityAction has label.