I am using WebDriver with Java for test automation. I have the following HTML code for input field which is hidden:
<input type="hidden" value="" name="body" id=":6b">
How to type something in hidden field in Selenium2 (WebDriver)? I have written code as:
driver.findElement(By.name("body")).sendKeys("test body");
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
Can anybody please help me to write/type some text in hidden field?