Abdul Asif

Abdul Asif

  • NA
  • 27
  • 0

How to Click Element in DOM document

Oct 17 2007 7:42 PM

Hi All,

 

I am working on a project that host WebBrowser control using C#. Objecive of this project to automate

webBrowser. I have the element that, I want to be click automatically. Please Help!!

 

 

//Browser name = LPBrowser

 

mshtml.IHTMLDocument3 doc = (mshtml.IHTMLDocument3)this.LPBrowser.Document.DomDocument;

 

doc.getElementById("newlink").click();  //This click() method doesn't work me