This page offers a basic example on how to use the methods offered by the dom module within protractor tests.
Every time you press the Start button, a $timeout
will be set to a random time value. After that time period yeoman will hide. Then you are able to press the Seek button, to search for him. After another time period of random length, yeoman will reappear.