diff --git a/test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java b/test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java index 092743cc4e1..24889072f32 100644 --- a/test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java +++ b/test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java @@ -82,6 +82,7 @@ public class SliderDemoTest { JSliderOperator jso = new JSliderOperator(jfo, new AccessibleNameChooser(accessibleName)); if (accessibleName.equals(HORIZONTAL_PLAIN_SLIDER)) { + jso.waitHasFocus(); checkKeyboard(jso); checkMouse(jso); }