def METHOD_NAME(self, locator_type, locator, waiter):
    wait = 15
    try:
        element = WebDriverWait(self.browser, wait).until(
            waiter((locator_type, locator))
        )
        return element
    except TimeoutException:
        raise AssertionError("Expected to find element %s" % locator)