title: How to change the value of datepicker using Selenium and Python
body: <p>In a <code>table</code> element I have the following for a date picker:</p>
  <pre><code>&lt;input name=&quot;tb_date&quot; type=&quot;text&quot; value=&quot;2020-07-15&quot; onchange=&quot;javascript:setTimeout('__doPostBack(\'tb_date\',\'\')', 0)&quot; onkeypress=&quot;if (WebForm_TextBoxKeyHandler(event) == false) return false;&quot; id=&quot;tb_date&quot; class=&quot;align-center&quot; style=&quot;font-size:14pt;width:120px;&quot;&gt;
  </code></pre>
  <p>I can get the input element as follows:</p>
  <pre><code>date_element = driver.find_element_by_name('tb_date')
  </code></pre>
  <p>That is fine. But when I try to change the value on this element, it seems to <strong>append</strong> to the current value.</p>
  <pre><code>date_element.send_keys('2020-07-01')
  date_element.click()
  </code></pre>
  <p>So the datepicker has a value of <code>'2020-07-152020-07-01'</code></p>
  <p>How can I delete the value attribute and input a new one?</p>