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