Programmaticaly click on a link in webbrowser using DOM delphi 7

99封情书 提交于 2019-12-11 08:23:03

问题


<span id="lblCommande">Bon de commande</span></a>|
<a href="retour.aspx">

This is the link I want to "click" using a button. I know how to click a button using this: WebBrowser.OleObject.Document.GetElementByID('ID HERE').Click; But that doesn'T work for links. Any ideas?


回答1:


Ok I found it. Here's how: WebBrowser.OleObject.Document.GetElementByID('lblcommande').Click;



来源:https://stackoverflow.com/questions/10593494/programmaticaly-click-on-a-link-in-webbrowser-using-dom-delphi-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!