title: How do I get the HTML Source of the node h2 with the WebElement in Selenium Webdriver?
body: <p>I have a website that has such a piece of source:</p>
  
  <pre><code>&lt;div class="wrapper group"&gt;
   &lt;h2&gt;
      &lt;span&gt;
      1.
      &lt;/span&gt;
      Créez votre site.
   &lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to get this string</p>
  
  <pre><code>"&lt;span&gt;1.&lt;/span&gt;Créez votre site."
  </code></pre>
  
  <p>to do some verification. How do I get such a string?</p>
  
  <p>By the way, there is an existing piece of code in the java project to get the text:</p>
  
  <pre><code>public static final SeBlob STEP_ONE = new SeBlob("div.wrapper.group&gt;h2");
  
   driver.findElement(WebsitesElements.STEP_ONE.getBy()).getText();
  </code></pre>
  
  <p>The result is "1. Créez votre site", which is not what I want.</p>