def recurse_while_none(element):
    """
    Traverse the ``element`` until a non-None text is found.

    :param element: element to traverse until get a non-None text.
    :type element: pyquery.PyQuery

    :returns: the first non-None value found
    :rtype: str
    """
    if element.text is None:
        return recurse_while_none(element.getchildren()[0])
    return element.text