Speed up tests by waiting for an element instead of a specified period

I'm impatient when my computer is being lazy.