def METHOD_NAME(web_element):
    try:
        web_element.clear()
    except Exception:
        text_length = len(web_element.text)
        while text_length > 0:
            web_element.send_keys(Keys.DELETE)
            text_length -= 1