getTree

suspend fun getTree(): List<NodeSnapshot>

Fetches the entire current UI hierarchy as a list of NodeSnapshots.

Calling this method forces the test runner to synchronize and wait for outstanding UI operations to settle.

Return

a list representing all nodes currently present in the Compose Multiplatform semantic tree.