BS-9381: Wait until the main windows is available