当前位置: 代码迷 >> PB >> OLE调IE,怎么执行网页中的表单
  详细解决方案

OLE调IE,怎么执行网页中的表单

热度:14   发布时间:2016-04-29 07:12:55.0
OLE调IE,如何执行网页中的表单?
使用OLE调用IE,所打开的网页中,有一登录表单,我希望程序能自动输入用户、密码以及登录。目前自动输入用户、密码都能解决
ole_1.object.Document.GetElementById.("username").InnerText='aaa'
ole_1.object.Document.GetElementById.("password").InnerText ='bbbbb'
遇到的困难是如何登录,不知道在如何控制程序提交表单即点击“登录”按钮,恳请各位伸一下援手。
下面是表单的源码
<form action="member.php?mod=logging&amp;action=login&amp;loginsubmit=yes&amp;infloat=yes&amp;lssubmit=yes" method="post" name="lsform" id="lsform" onsubmit="return lsSubmit();" autocomplete="off">

帐号<input type="text" name="username" id="ls_username" value="用户名/Email"  />
密码<input type="password" name="password" id="ls_password" class="px vm" autocomplete="off" tabindex="902" />
<button type="submit" class="pn vm" tabindex="904" style="width: 75px;">登录</button>
</form>
------解决方案--------------------

------解决方案--------------------
来接个分啊,
  相关解决方案