title: How to fix Selenium not clearing default text on an input
body: <p>I am trying to input an amount in a text field which contains a default string.</p>
  
  <p>HTML of that field:</p>
  
  <pre><code>&lt;div class="InputGroup"&gt;
      &lt;span class="InputGroup-context"&gt;$&lt;/span&gt;
      &lt;input autocomplete="off" class="Input InputGroup-input" id="amount" name="amount" type="text" maxlength="12" value="0.00"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When trying to input text to the field, instead of replacing the default text, it appends it to it.</p>
  
  <p>I have tried to use <code>amount.clear()</code> (amount is what I am calling the element) but after running that and sending the keys it throws the below exception:</p>
  
  <pre><code>selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
  </code></pre>
  
  <p>As you will see from my current code, I am also trying to double click the default text but that doesn't help.</p>
  
  <p>This is my code at the moment:</p>
  
  <pre><code>ActionChains(driver).move_to_element(amount).click(amount).click(amount).perform()
  amount.send_keys(Keys.BACKSPACE)
  amount.send_keys('100')
  </code></pre>
  
  <p>Which results in an input field of 0.00100 when I'm expecting 100.</p>