performEvent
suspend fun <T : Component> SwingNodeInteraction<T>.performEvent(event: (T) -> AWTEvent): SwingNodeInteraction<T>
Delivers the event event builds for the matched node, then settles the composition.
The node is resolved from the query, so event is handed the live component the query names, and the composition is settled once the event has been delivered. Every gesture in this file is that shape.
Build event with the node as its source, so its getSource agrees with the component it is delivered to.
onNodeOfType<JTable>().performEvent { table ->
MouseEvent(table, MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, 4, 4, 0, false)
}Content copied to clipboard
Return
this interaction, for chaining a further gesture or assertion.
Parameters
event
builds the single event this call delivers; a gesture of several events is several calls, each an event-queue cycle apart.
Throws
if the query does not resolve to a single node.