---
title: "performCustomAccessibilityActionWithLabelMatching"
description: "Finds the [CustomAccessibilityAction] in the node's [CustomActions] list whose label satisfies a
predicate function and then invokes it."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalTestApi
fun SemanticsNodeInteraction.performCustomAccessibilityActionWithLabelMatching(
    predicateDescription: String? = null,
    labelPredicate: (label: String) -> Boolean,
): SemanticsNodeInteraction
```


Finds the `CustomAccessibilityAction` in the node's `CustomActions` list whose label satisfies a
predicate function and then invokes it.

#### Parameters

| | |
| --- | --- |
| predicateDescription | A description of `labelPredicate` that will be included in the error message if zero or >1 actions match. |
| labelPredicate | A predicate function used to select the `CustomAccessibilityAction` to perform. |




