Doesn't this mean that the wizard should close after this action, use rather something like: Graphene.waitGui().withTimeout(30, TimeUnit.SECONDS).until().element(root).is().not().present();
closed = true;