html - VB.NET/GetElementByClass how to div class click? -
</div></div></div><div class="f u" id="m_more_item"><a href="/browse/likes/?id=1026395497374065&start=30&refid=53"><span>diğerlerini gör</span></a></div></div></div></div></div></div></div></body></html>   document
code:
dim h1 htmlelementcollection = nothing     h1 = w.document.getelementsbytagname("div")     each curelement htmlelement in h1         if instr(curelement.getattribute("classname").tostring, "f u")              curelement.invokemember("click")   but code not work me ?
off example: vb.net - select class using getelementbyclass , click item programmatically
the problem trying click div instead of trying click href tag. want instead.
since there no "class" or on element, like...
dim h1 htmlelementcollection = nothing     h1 = w.document.getelementsbytagname("div")     each h1element htmlelement in h1         dim namestr string = h1element.getattribute("href")         if ((namestr isnot nothing) , (namestr.length <> 0))              h1element.invokemember("click")      
Comments
Post a Comment