click

fun MouseInjectionScope.click(position: Point = center, button: Int = MouseEvent.BUTTON1)

Clicks at position with button.

Parameters

position

the click position in the matched component's coordinates; its center by default.