delphi WebBrowser1 网页提交按钮执行点击事件


本文整理自网络,侵删。

 遍历即可实现,下列代码仅供参考:
var
  i: integer;
  T: OleVariant;
begin
  T := WebBrowser1.Document;
  for i := 0 to T.all.Length - 1 do
  begin
    if T.all.item(i).tagName = 'INPUT' then
    begin
      if T.all.item(i).type = 'submit' then
      begin
        T.all.item(i).click;
        Exit;
      end;
    end;
  end;
end;

相关阅读 >>

Delphi 关于禁止程序重复启动的另一种需要与实现

Delphi 日期加减

Delphi spy++ 拖拽功能

Delphi 游戏测试call

Delphi 收藏字符串处理单元

Delphi 正则表达式的匹配模式

Delphi tstringbuilder详解

Delphi inttohexansi

Delphi webbrowser中获取input表单值

Delphi tms web core twebhttprequest使用

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...