Explicit Wait with Selenium

Recently I started working with Appium for testing our mobile applications. Since we are developing applications for both Android and iOS, Appium seemed like a logical choice. To make my automation more effective, I have decided to write my own element search mechanism that would allow user to specify element search methods in a predefined order. Here's a small sample of how it works: