I\'m trying to read the example String
I came across the same problem of reading invisible elements but I wanted back a WebElement object to do further parsing (not just its text). This bit of code fulfilled my requirement.1000 out of a hidden
(WebElement) ((JavascriptExecutor) driver).executeScript(
"arguments[0].style[\"display\"] = \"block\";"+
"arguments[0].style[\"visibility\"] = \"visible\";"+
"return arguments[0];",
element);