--- old/application/uitests/org.openjdk.jmc.test.jemmy/src/test/java/org/openjdk/jmc/test/jemmy/misc/wrappers/MCTable.java 2019-05-09 10:24:58.390227795 -0400 +++ new/application/uitests/org.openjdk.jmc.test.jemmy/src/test/java/org/openjdk/jmc/test/jemmy/misc/wrappers/MCTable.java 2019-05-09 10:24:58.321227075 -0400 @@ -49,6 +49,7 @@ import org.jemmy.input.StringPopupOwner; import org.jemmy.input.StringPopupSelectableOwner; import org.jemmy.interfaces.Keyboard.KeyboardButtons; +import org.jemmy.interfaces.Keyboard.KeyboardModifiers; import org.jemmy.interfaces.Parent; import org.jemmy.interfaces.Selectable; import org.jemmy.lookup.Lookup; @@ -731,6 +732,22 @@ } /** + * Selects the table row at a specified "start" index, and uses SHIFT+DOWN to + * add to the selection up until a specified "end" index + * + * @param from + * the row index to start from + * @param to + * the row index to stop selecting + */ + public void selectItems(int start, int end) { + select(start); + for (int i = 0; i < end; i++) { + getShell().keyboard().pushKey(KeyboardButtons.DOWN, new KeyboardModifiers[] {KeyboardModifiers.SHIFT_DOWN_MASK}); + } + } + + /** * Context clicks the currently selected table item and chooses the supplied option * * @param desiredState