This new implementation should probably be using utils.wait.wait_for. There's a working example that can probably be quickly adapted in `scripts/wait_for_appliance_ui.py`