--- old/application/uitests/org.openjdk.jmc.test.jemmy/src/test/java/org/openjdk/jmc/test/jemmy/misc/wrappers/MCChartCanvas.java 2019-06-03 10:57:03.554514450 -0400 +++ new/application/uitests/org.openjdk.jmc.test.jemmy/src/test/java/org/openjdk/jmc/test/jemmy/misc/wrappers/MCChartCanvas.java 2019-06-03 10:57:03.454512878 -0400 @@ -100,6 +100,7 @@ */ @SuppressWarnings("unchecked") public void clickContextMenuItem(String menuItemText) { + focusMc(); StringPopupOwner contextMenu = control.as(StringPopupOwner.class); contextMenu.setPolicy(StringComparePolicy.SUBSTRING); contextMenu.push(getRelativeClickPoint(), new String[]{menuItemText}); @@ -125,7 +126,7 @@ Fetcher fetcher = new Fetcher() { @Override public void run() { - setOutput(new Point(control.getScreenBounds().x, control.getScreenBounds().y)); + setOutput(new Point(control.getScreenBounds().x / 2, control.getScreenBounds().y / 2)); } }; Display.getDefault().syncExec(fetcher);