def wait_displayed(element, timeout=None, fail_on_timeout=None):
    """
    Wait until element becomes visible or time out.
    Returns true is element became visible, otherwise false.
    If timeout is not specified or 0, then uses specific element wait timeout.
    :param element:
    :param timeout:
    :param fail_on_timeout:
    :return:
    """
    return wait(lambda: element.is_displayed(), timeout or element.wait_timeout, fail_on_timeout)