title: How to get text of an HTML-Element with Selenium/Node.js
body: <p>Unfortunately I did not find any existing solution for my problem on stackoverflow. So, can someone help.</p>
  
  <p>I want to get the text of an html-element. I tried this:</p>
  
  <pre><code>var element = driver.findElement(webdriver.By.className("credits")).getText();
  
  console.log(element);
  </code></pre>
  
  <p>Unfortunately this did not work so far. </p>