Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42359

VS 2010 need help clicking a trickly lil image on a html doc

$
0
0
wrote a little program to comment when my friends post a new instagram picture....so im using statigram a.t.m.
got everything else working so far ...i load my friends pics from my update page...& i can set the "comment" perfectly fine...im just having issues hitting 'send'

Here is the html on the page for the 'send comment' tiny lil question mark looking button

Code:

<a href="#" class="commentAction" id="postComment-402467323865880623_317878733"></a>
I've tried a few things but can't get them to work....here is one thing i tried...unsuccessfully! LoL

Code:

            For Each b As HtmlElement In hDoc.GetElementsByTagName("a")
                If b.GetAttribute("commentAction").ToLower = "#" Then
                    b.InvokeMember("click")
                    Exit For
                End If
            Next

+ rep for anyone that takes a sec to help me out <3

Viewing all articles
Browse latest Browse all 42359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>