public FxRobot _moveTo(String query) {
return moveTo(_visiblePoint(query));
}
private Node queryFirstNode(NodeQuery nodeQuery,
String queryDescription) {
<BUG>Optional<Node> resultNode = nodeQuery.queryFirst();
</BUG>
if (!resultNode.isPresent()) {
String message = queryDescription + " returned no nodes.";
throw new FxRobotException(message);

public FxRobot _moveTo(String query) {
return moveTo(_visiblePoint(query));
}
private Node queryFirstNode(NodeQuery nodeQuery,
String queryDescription) {
Optional<Node> resultNode = nodeQuery.tryQueryFirst();
if (!resultNode.isPresent()) {
String message = queryDescription + " returned no nodes.";
throw new FxRobotException(message);
