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:

val table = onNodeOfType<JTable>().fetch()