Wait until server is launched in selenium test