def wait_for(<EOL>self, timeout=<NUM_LIT>, interval=<NUM_LIT:1000>,<EOL>asserter=lambda x: x):
if not callable(asserter):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>@retry(<EOL>retry_on_exception=lambda ex: isinstance(ex, WebDriverException),<EOL>stop_max_delay=timeout,<EOL>wait_fixed=interval<EOL>)<EOL>def _wait_for(el):<EOL><INDENT>asserter(el)<EOL>return el<EOL><DEDENT>return _wait_for(self)<EOL>
Wait for element till given condition

        Support:
            Android iOS Web(WebView)

        Args:
            timeout(int): How long we should be retrying stuff.
            interval(int): How long between retries.
            asserter(callable): The asserter func to determine the result.

        Returns:
            Return the Element.

        Raises:
            WebDriverException.