title: How to "wait to activity" using Appium, on begin and during test itself?
body: <p>I'm starting an already installed app using appium.</p>
  
  <p>After my driver is initialized. How do I make it poll-wait till certain activity is displayed?</p>
  
  <p>I saw only this way to wait for activity when starting up</p>
  
  <p><code>cap.setCapability("app-wait-activity", "activity-to-wait-for");</code> </p>
  
  <p>Is there any other way? How do I wait to another specific activity when not initializing. Say after a button click?</p>
  
  <p>just <code>sleep x seconds</code> ?  </p>