Fill a field on a web page in TWebBroswer Delphi 7

浪子不回头ぞ 提交于 2019-12-02 01:49:38

问题


I'm making a small program to place orders on our supplier's web site. I need to fill 3 fields in the page. Don't even need to "submit" it.

Is there any simple way or any component that could do that (preferably free)

Thank you!


回答1:


Suppose you have an input field with name 'name' and type 'text', you can call

WebBrowser1.OleObject.Document.GetElementByID('name').setAttribute('value', 'somename');


来源:https://stackoverflow.com/questions/10568608/fill-a-field-on-a-web-page-in-twebbroswer-delphi-7

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