fix selenium test by adding delay