how to interact with hidden elements using webdriver code example
Example: how to handle hidden elements in selenium webdriver
JavascriptExecutor js=(JavascriptExecutor)driver;
js.executeScript("document.getElementsByClassName(ElementLocator).click();");