Click a javascript button issue! PLEASE HELP 09-26-2013, 08:16 PM
#1
Hey guys
A couple of months ago I decided to make a bot and I've been working on one for a while, but there's only one thing remaining and that's the most important one. The site code looks like this:
And my code looks like this:
Do you got any ideas on how to click this button?
A couple of months ago I decided to make a bot and I've been working on one for a while, but there's only one thing remaining and that's the most important one. The site code looks like this:
Code:
<a class="single_like_button btn3-wrap" onclick="openFbLWin_588158();">
<span> </span><div class="btn3">Like</div></a>
And my code looks like this:
Code:
For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("button")
' Check the attributtes you want
If elem.GetAttribute("class") = "single_like_button btn3-wrap" Then
'Check even the text if you want
If elem.InnerText = "Like" Then
'Invoke your event
elem.InvokeMember("click")
End If
End If
Next