Solved

Visual basic 2008 webbrowser click

Posted on 2011-09-02
2
486 Views
Last Modified: 2013-11-27
hello my friends i am very need click in a link in one website using webbrowser in visual basic 2008 express and not sucess in click.
the html is
<td class="tdTituloMenuPai" colspan="2">
<a href="#" class="aMenuNome" onclick="mudaClasseLink(this,1,0,0);CloseAll();ajaxProcessUrl('/axmf/empresasonline91', tratarResposta);return false;">Empresa Online 91</a>

in delphi i am click in this using
Doc2 := wb.Document as IHTMLDocument2;
elementos := doc2.links;
      for i := 0 to elementos.length - 1 do
      begin
        elemento := elementos.item(i, 0) as IHTMLElement;
        if Assigned(elemento) then

         begin
           if (pos('Empresa Online 91',elemento.outerText) > 0)  then
          begin
            elemento.click;
what i am need code for click in this on visual basic 2008 express. thankssss

0
Comment
Question by:kidd12
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 36477871
Simple "Click" example:

WebBrowser1.Document.GetElementById("search").InvokeMember("submit")

Open in new window



0
 

Author Closing Comment

by:kidd12
ID: 36585134
thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
link access with Quickbooks 9 57
Event ID 10010 3 69
VIDEO DATASOURCE Control Resize issue 2 30
Input parameteres to DragOver 2 20
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question