I'm trying to get only the text inside a html code, but my lack of knowledge has led me to an error. Here is an example of the HTML code I have:
Testing it in the browser this xpath got me what i needed: //td/text()[normalize-space()]
The first problem is when I use only //td/text() is I get this error:
Error parsing xpath: Unable to cast object of type 'System.String' to type 'mshtml.IHTMLElement'.
Furthermore when I try to remove blank space with normalize-space with //td/text()[normalize-space()] then I get an error like this:
Error parsing xpath: Invalid custom method normalize-space
I've selected capture type as text currently, but I tried it with different capture types as well.
Thanks in advance.