OI people.
I need to get with c # the innerHTML of the first SPAN element that has a numbered value that is inside a div and I I already wrote a code that is on the right track I think .. so far is this:
HtmlElementCollection Elems;
WebBrowser WebOC = webBrowser;
Elems = WebOC.Document.GetElementsByTagName("div");
foreach (HtmlElement elem in Elems) {
if ((elem.GetAttribute("id") == "MyId")) {
}
}
To do this with JavaScript I can with this code below
HTML
<div id="myId" class=""><span>874.005.877-81</span><span class="clipboard-copy"></span></div>
JAVASRIPT
var x = document.getElementById("myId");
var val = x.querySelector("span").innerHTML;
alert(val);
Thanks for any solution to this; D