def web_element_to_dict(el):
    """Converts a Selenium WebElement to a standard Python dict.
    
    Args:
        el (WebElement): The WebElement to convert.

    Returns:
        dict
    """
    d = {}
    d['text'] = el.text
    if el.get_attribute('href'):
        d['href'] = el.get_attribute('href')
    return d