<div class='type'>Compose Modifier</div>

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


<h2 id="testtag-tag">testTag</h2>

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


```kotlin
fun Modifier.testTag(tag: String) = this then TestTagElement(tag)
```


Applies a tag to allow modified element to be found in tests.

This is a convenience method for a `semantics` that sets `SemanticsPropertyReceiver.testTag`.