All,
I'm trying to traverse the DOM tree using webbrowser control but oddly the text elements are not part of the children collection. As a work around I go to each node and check if innerText is populated and the number of children are empty.
But this doesn't catch scenarios like these
<div>
text element that cannot be detected
<span> text that is detected </span>
</div>
Does anyone have any experience with this issue?
Thanks
I'm trying to traverse the DOM tree using webbrowser control but oddly the text elements are not part of the children collection. As a work around I go to each node and check if innerText is populated and the number of children are empty.
But this doesn't catch scenarios like these
<div>
text element that cannot be detected
<span> text that is detected </span>
</div>
Does anyone have any experience with this issue?
Thanks