vb.net - Get specific text in HTML code using webbrowser and VB -
i want in vb using webbrowser somehow text : 00:15 html code :
<div id="stop15" class="sec"> <div class="sec">00:15</div> </div>
i tried :
dim elements htmlelementcollection = webbrowser1.document.getelementsbytagname("div") each htmlelement in elements if he.outerhtml.toupper.contains("sec") checkedlistbox1.items.add(he.getattribute("class")) 'or he.innertext() end if next
, not work. help.
- load page in vairable string
- use regular expressions @ < div class="sec">.+< /div>
- extract text
Comments
Post a Comment