Get text element using .net WenBrowser control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webbyter1010
    New Member
    • May 2010
    • 1

    Get text element using .net WenBrowser control

    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
Working...