wait for test page to be rendered before doing anything else