performContextClick
suspend fun <T : Component> SwingNodeInteraction<T>.performContextClick(position: Point? = null): SwingNodeInteraction<T>
Makes the platform's context-menu gesture on the matched node at position, then settles the composition. position defaults to the middle of the node, in the node's own coordinates.
The gesture is a secondary-button click carrying the popup trigger on the one event the host platform carries it on: the release on Windows, the press everywhere else. A component reading isPopupTrigger off both events is asked once, the way the toolkit asks it.
Return
this interaction, for chaining a further gesture or assertion.
Parameters
position
where the gesture lands, which is the point a menu opened from it is placed at.