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


<a id='references'></a>


<h2 id="performfirstlinkclick-predicate">performFirstLinkClick</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsNodeInteraction.performFirstLinkClick(
    predicate: (AnnotatedString.Range<LinkAnnotation>) -> Boolean = { true }
): SemanticsNodeInteraction
```


For a first link matching the `predicate` performs a click on it.

A link in a Text composable is defined by a `LinkAnnotation` of the `AnnotatedString`.