title: How to set value of a hidden input with Selenium?
body: <p>I've already looked at <a href="https://stackoverflow.com/questions/8917612/set-hidden-input-value-in-selenium">this</a> but had no luck.</p>
  
  <p>I've tried that example and it says <code>undefined browserbot</code>, I also tried the simple:</p>
  
  <pre><code>@browser.navigate.to "http://example.com"
  @browser.execute_script("$('#hiddenthing').val('foo bar')")
  </code></pre>
  
  <p>which doesn't work at all, If i tried to set the value without javascript, it says <code>you can't interact with hidden elements</code>.</p>
  
  <p>Any suggestions?</p>