adds a sleep method to test to fully load page before reading