// 首先定位到input,然后使用clear()
self.driver.find_element_by_xpath('xxxx').clear()
// 往输入框写入内容类似
self.driver.find_element_by_xpath('xxx').send_keys('xxxxx')