How i can click on WEBBROWSER LINK LABEL using vb.net

Andrew1399

Newbie
Joined
Feb 28, 2015
Messages
4
Reaction score
0
Code:
<span class="label-pedido" id="label-pedido-20489948">Exibir</span>
this is code that i want to click, more this "20489948" all time change... what code i can do to click this?
this is linklabel image DnHoQQC.png

thanks alot.
 
emm something like this (note that I am writing it in the editor it could have some minor name errors)

Dim htmlelements as htmlelementcollection = WebBrowserXXX.getElementsByTagName("span")
Dim element as htmlelement
For each element in htmlelements
try

if element.outterhtml.tostring.contains("id=""label-peido") and element.innertext.contains("exibir")
element.focus()
element.invokemember("click") 'here click happens
end if
catch
end try

next
 
Back
Top