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