@Test public void doubleClickXY() throws Exception { final SWTBotCanvas canvas = bot.canvasInGroup("Canvas"); canvas.doubleClick(10, 20); assertThat(listeners.getText(), containsString("Double-clicked on Canvas: button=1 x=10 y=20")); }
@Test public void click() throws Exception { final SWTBotCanvas canvas = bot.canvasInGroup("Canvas"); canvas.click(); assertThat(listeners.getText(), containsString("Clicked on Canvas: button=1 ")); }