Added a Thread.sleep to selenium test