waitForDisappear with loop