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.

  1. load page in vairable string
  2. use regular expressions @ < div class="sec">.+< /div>
  3. extract text

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -