Wait until new window is visible