i need help about visual basic website click buttons without id.

Html Code:

<div class="likeBox">
    <span class="like-active" style="display:none;"></span>
    <div class=" ghostLink">

        <a class="like hintable" hint="Like" href="javascript:void(0)" onclick="if (!Profile.likesBlocked()) { Profile.quickLike('#like_box_53117043234'); $.ajax({data:'authenticity_token=' + encodeURIComponent('6S2x01Deqy77H5OYvhxaDVyncWWcQavyOsTuw7J52/M='), dataType:'script', type:'post', url:'/likes/qwert1312/question/53117043234/add'}); }; return false;"></a>

    </div>
  </div>

    <div class="likeList you-like-block" style="display:none">You like this</div>


<div class="likeList people-like-block"></div>

VB Code:

WebBrowser1.GetElementById("?").InvokeMember("click") 

==> error. Please Help Me! :)

Member Avatar for LastMitch

i need help about visual basic website click buttons without id.

I'm not familiar with VB but The code you provided is more related javascript than ASP.net.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.