tools/SharedTestUtilsOpen/src/test/javaclient/shared/TestUtil.java

Print this page

        

*** 35,44 **** --- 35,45 ---- import org.jemmy.fx.ByWindowType; import org.jemmy.fx.Root; import org.jemmy.timing.State; import test.javaclient.shared.description.TreeNode; import test.javaclient.shared.screenshots.GoldenImageManager; + import com.sun.javafx.stage.WindowHelper; /** * Utility methods * * @author Sergey Grinev
*** 174,184 **** final Wrap<? extends Scene> scene; scene = Root.ROOT.lookup(new ByWindowType(Stage.class)).lookup(Scene.class).wrap(0); Utils.deferAction(new Runnable() { public void run() { ! scene.getControl().getWindow().setFocused(true); } }); return scene; } --- 175,186 ---- final Wrap<? extends Scene> scene; scene = Root.ROOT.lookup(new ByWindowType(Stage.class)).lookup(Scene.class).wrap(0); Utils.deferAction(new Runnable() { public void run() { ! //scene.getControl().getWindow().setFocused(true); ! WindowHelper.setFocused(scene.getControl().getWindow(), true); } }); return scene; }