how to delete value of input before send keys seleniumn code example Example: python selenium clear input driver.find_element_by_id('foo').clear()