title: How to wait for input field to refresh in Selenium webdriver
body: <p>In my AUT there are two fields - a <code>'Product'</code> drop down and an <code>'Amount'</code> input field. By default, the <code>'Amount'</code> field shows the value <code>'0.0'</code>. When user select a product from the <code>'Product'</code> drop down the <code>'Amount'</code> field gets auto populated with the price of the selected product if the price is already available in DB, otherwise the <code>'Amount'</code> field shows <code>'0.0'</code>. It takes a while to load the amount to <code>'Amount'</code> field after a product is selected. I cant observe any change in attribute value of the <code>'Amount'</code> field before and after it is auto populated. The html of the <code>'Amount'</code> field is</p>
  
  <pre><code>&lt;input id="id_expense_amt" class="form-control input" name="expense_amt" step="0.01" value="0" type="number"&gt;
  </code></pre>
  
  <p>The question is that how can I make the webdriver to wait for the amount field to refresh after a product is selected. I used <code>Thread.sleep()</code> and it works fine. But is there any other method available.</p>