def METHOD_NAME(driver, pages):
    pages.load("formPage.html")
    element = driver.find_element(By.ID, "withText")
    element.send_keys("Some text")
    value = element.get_attribute("value")
    assert len(value) > 0
    element.clear()
    value = element.get_attribute("value")
    assert len(value) == 0