title: How to type some text in hidden field in Selenium WebDriver using Java
body: <p>I am using WebDriver with Java for test automation. I have the following HTML code for input field which is hidden:</p>
  
  <pre><code>&lt;input type="hidden" value="" name="body" id=":6b"&gt;
  </code></pre>
  
  <p>How to type something in hidden field in Selenium2 (WebDriver)? I have written code as:</p>
  
  <pre><code>driver.findElement(By.name("body")).sendKeys("test body");
  </code></pre>
  
  <p>But it was shown the following error:
  org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
  Command duration or timeout: 30.04 seconds</p>
  
  <p>Can anybody please help me to write/type some text in hidden field?</p>