for i := 0 to WebBrowser1.OleObject.links.Length - 1 do begin s := WebBrowser1.OleObject.Document.links.Item(i).InnerText; if name = s then begin WebBrowser1.OleObject.document.all.tags('A').item(i).click; end; end; 

when OleObject.Document a memory leak occurs, it is recommended to solve it using ControlInterface.Document - how to use it?

  • Yes, exactly the same. ControlInterface.Document returns IDispatch, i.e. the compiler will "eat" everything you try to call from its methods. And to understand what is right and what is not will be already in runtime. - kami
  • Didn't quite understand how to use ControlInterface - Zavet

0