"if selenium textarea element `foo` is not empty, clear the field",driver.find_element_by_id('foo').clear()