return windowFinder.window(windowIndex);
}
public static Stage findStageByTitle(String stageTitleRegex) {
return (Stage) windowFinder.window(stageTitleRegex);
}
<BUG>@SuppressWarnings("unchecked")</BUG>
public static <T extends Node> T find(String query) {
try {
<BUG>return (T) nodeFinder.node(query);
</BUG>
}

return windowFinder.window(windowIndex);
}
public static Stage findStageByTitle(String stageTitleRegex) {
return (Stage) windowFinder.window(stageTitleRegex);
}
public static <T extends Node> T find(String query) {
try {
return nodeFinder.nodes(query).queryFirst();
}
