Button Click Using Gecko Fx

genious1

Newbie
Joined
Apr 7, 2013
Messages
1
Reaction score
0
hello, i am using geckofx in vb and i wannt to click a button on a website {<a class="text1 text1" href="javascript:void(0);" multilinks-noscroll="true">text2 text2</a>}, how can i do this ?
thanks!
 
Hopefully this help OP.

Code:
Dim node As GeckoNode = geckoWebBrowser.Document.GetElementsByClassName("text1 text1")(0).FirstChild
If NodeType.Element = node.NodeType Then
    Dim element As GeckoElement = DirectCast(node, GeckoElement)
    element.Click()
Else
     Msgbox("No element found.")
End If
 
Last edited:
Back
Top