title: Selenium (Python): How to insert value on a hidden input?
body: <p>I'm using Selenium's WebDriver and coding in Python.</p>
  
  <p>There's a hidden input field in which I'm trying to insert a specific date value. The field originally produces a calendar, from which a user can select an appropriate date, but that seems like a more complicated endeavour to emulate than inserting the appropriate date value directly.</p>
  
  <p>The page's source code looks like this:</p>
  
  <pre><code>&lt;div class="dijitReset dijitInputField"&gt;
  &lt;input id="form_date_DateTextBox_0" class="dijitReset" type="text" autocomplete="off" dojoattachpoint="textbox,focusNode" tabindex="0" aria-required="true"/&gt;
  &lt;input type="hidden" value="2013-11-26" sliceindex="0"/&gt;
  </code></pre>
  
  <p>where <code>value="2013-11-26"</code> is the field I'm trying to inject a value (it's originally empty, ie: <code>value=""</code>.</p>
  
  <p>I understand that WebDriver is not able to insert a value into a hidden input, because regular users would not be able to do that in a browser, but a workaround is to use Javascript. Unfortunately that's a language I'm not familiar with. Would anyone know what would work?</p>