title: Changing input value with selenium using python
body: <p>I want to change the input value of in the following form:</p>
  <pre><code>&lt;div class=&quot;col-xs-6&quot;&gt;&lt;input class=&quot;js-order-amount trading-amount trading-price-field textbox pull-left&quot; type=&quot;text&quot; maxlength=&quot;9&quot; required=&quot;required&quot; placeholder=&quot;Quantity&quot; value=&quot;1&quot; data-toggle=&quot;tooltip&quot; data-html=&quot;true&quot; data-trigger=&quot;manual&quot; data-container=&quot;body&quot; data-placement=&quot;right&quot; title=&quot;&quot; data-original-title=&quot;How many pieces would you like to buy?&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>I am using the following code:
  <code>quantity_element= driver.find_element(By.CSS_SELECTOR,'input[class*=&quot;js-order-amount&quot;]')</code>
  <code>driver.execute_script(&quot;arguments[0].setAttribute('text',arguments[1])&quot;, quantity_element, &quot;6&quot;)</code></p>
  <p>Querying the value with <code>amount = piece_element.get_attribute(&quot;value&quot;)</code> gives me the updated value of &quot;6&quot;, but I don't see this value on the userinterface of the website.</p>
  <p>Any ideas? Thank you!</p>