element.clear()
element = wd.find_element(By.ID, "input1") element.clear() # 清除输入框已有的字符串 element.send_keys('xxx') # 输入新字符串