tools/SharedTestUtilsOpen/src/test/javaclient/shared/screenshots/ScreenshotUtils.java

Print this page

        

*** 165,175 **** } public static Wrap<? extends Node> getPageContent() { Node n = application.getNodeForScreenshot(); final Wrap<? extends Scene> scene = Root.ROOT.lookup(new ByWindowType(Stage.class)).lookup(Scene.class).wrap(0); ! return new NodeDock(scene.as(Parent.class, Node.class), n.getId()).wrap(); } /** * * @return rectangle contains all children of page content. This rectangle may have different --- 165,176 ---- } public static Wrap<? extends Node> getPageContent() { Node n = application.getNodeForScreenshot(); final Wrap<? extends Scene> scene = Root.ROOT.lookup(new ByWindowType(Stage.class)).lookup(Scene.class).wrap(0); ! //return new NodeDock(scene.as(Parent.class, Node.class), n.getId()).wrap(); ! return new NodeDock((Parent<Node>)scene.as(Parent.class, Node.class), n.getId()).wrap(); } /** * * @return rectangle contains all children of page content. This rectangle may have different