onNodeOfType
Finds the single node of type T. Convenience for onNode(SwingMatcher.isOfType<T>()).
The returned interaction carries T, so the node is fetched without naming the type a second time. SwingNodeInteraction.fetch is the last resort: to read a value, use org.jetbrains.compose.swing.test.interaction.assertProperty, a matcher or an assertion.
val table = onNodeOfType<JTable>().fetch()Content copied to clipboard