Creates delay method for waiting for page load in tests

Creates a delay method that's run before checking particular page
appearances to (hopefully) wait for page load.