【发布时间】:2011-09-06 10:28:35
【问题描述】:
我正在使用AutoIt 自动填写网站上的表格。
但我在从网站获取表单名称时遇到问题。我查看了 HTML 的源代码并找到了表单及其名称,但我仍然收到 IEStatus_noMatch 错误。
有没有更简单的方法来获取表单名称或如何找到它?
对于对象,我可能会遇到同样的问题。
$sUrl = "https://www.acgme.org/residentdatacollection/login.asp"
$oIE = _IEAttach($sUrl, "url")
If not isObj($oIE) Then
$oIE = _IECreate()
_IENavigate($oIE, $sUrl)
EndIf
; Get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByName($oIE, "loginentry")
$o_login = _IEFormElementGetObjByName($o_form, "USERID")
$o_password = _IEFormElementGetObjByName($o_form, "PASSW")
【问题讨论】:
标签: html internet-explorer autoit