Can we wait for a condition here, rather than just sleeping for 30 seconds? Perhaps an element becoming visible?