functional/ControlsTests/test/javafx/scene/control/test/combobox/TestBase.java

Print this page

        

@@ -243,11 +243,12 @@
     }
 
     protected void checkScrollBarVisibility(boolean visible) throws InterruptedException {
         Wrap<? extends Scene> popup = getPopupWrap();
         if (popup != null) {
-            Assert.assertTrue(findScrollBar(((Wrap<? extends ListView>) popup.as(Parent.class, Node.class).lookup(ListView.class).wrap()).as(Parent.class, Node.class), Orientation.VERTICAL, visible) != null);
+            Assert.assertTrue(findScrollBar(((Parent<Node>) ((Wrap<? extends ListView>) ((Parent<Node>) popup.as(Parent.class, Node.class))
+                    .lookup(ListView.class).wrap()).as(Parent.class, Node.class)), Orientation.VERTICAL, visible) != null);
         }
     }
 
     protected boolean checkTextFieldVisibility() {
         Parent<Node> parentWrap = testedControl.as(Parent.class, Node.class);