title: Javascript to get hidden text value from website using Selenium web driver
body: <p>How can i get this telefoon nummer in string variable.</p>
  
  <pre><code>&lt;span itemprop="telephone" class="hidden" id="telefoon_28836_hidden"&gt;010 - 79 53 364&lt;/span&gt;
  </code></pre>
  
  <p>I tried this code without ant success.</p>
  
  <pre><code>JavascriptExecutor jse = (JavascriptExecutor)driver;
   String script = "return   document.getElementByXPath('//span[@itemprop='telephone']').getText();";
   String telno1 = ((JavascriptExecutor) driver).executeScript(script).toString();
  </code></pre>
  
  <p>I am getting this exception for String telno1 line</p>
  
  <pre><code>ErrorHandler$UnknownServerException: missing ) after argument list
  </code></pre>
  
  <p>please any help thank you</p>