I'm looking to count a string value displayed on a webbrowser control.
ex. The webbrowser displays the HTML Page, then, I need to search for a value (text1.text) and count how many times it appears in the browser.
The current code I am using does not pick up all of the values due to some of the values are within HTML Tags... Here are options that I have tried:
numTrigger = InStr(TriggerCountPosition, WebBrowser1.Document.documentElement.innerText, strText)
If numTrigger > 0 Then
intTriggerCount = intTriggerCount + 1
TriggerCountPosition = TriggerCountPosition + numTrigger
The count picks up 5 for the documentElement.(both Outer and InnerText)
and count = 6 for the document.Body.(Outer and InnerText)
There are actually a lot more that should be found, however, I'm thinking that the html tags must somehow be blocking the (string) value from being picked up.
Thank You in Advance...