I have in a website a line like this:
<!--<td class="points">100.000</td>-->
How can I take that "100.000" and put it in a string? I tried something like this in c#:
string points = driver.FindElement(By.XPath("/html/body/div[2]/div[2]/table[1]/tbody/tr[2]/comment()")).Text;
But I get an error like this when I try to take that number and put in the string:
"The result of the xpath expression "/html/body/div[2]/div[2]/table[1]/tbody/tr[2]/comment()" is: [object Comment]. It should be an element."
Any ideas to do this?