I am currently utilizing WebDriver in conjunction with Java for automated testing. I have come across a hidden input field within the following HTML code:
<input type="hidden" value="" name="body" id=":6b">
My challenge lies in trying to input data into this hidden field using Selenium2 (WebDriver). My initial attempt involved the following code snippet:
driver.findElement(By.name("body")).sendKeys("test body");
However, upon executing this code, I encountered the subsequent error message: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout: 30.04 seconds
Could someone kindly assist me in successfully typing text into this hidden field?