On Wed, 19 Jun 2024 10:32:28 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Test fix > > test/jdk/java/awt/print/PrinterJob/PageDialogCancelTest.java line 57: > >> 55: robot.waitForIdle(); >> 56: robot.delay(500); >> 57: }); > > These key presses are sent to whatever window has focus… before the Page > Dialog is shown and after it's hidden. Is pressing `VK_ESCAPE` not enough? > Pressing Esc is the same as clicking Cancel button. Yes, VK_ESCAPE worked..Modified to use that...Thanks.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/19786#discussion_r1646881869