def METHOD_NAME(self, locator, timeout=0):
    while True:
        try:
            return self._select(locator)
        except WindowNotFound:
            if time.time() > timeout:
                raise
            time.sleep(0.1)