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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: