如何点击网页上的按钮?

How to click a button on a webpage?

某网页的按钮是这样的

<input ng-disabled="form.$invalid" type="submit" value="Log On" class="btn btn-default" style="float: right" />

如何使用 AutoIt 单击它?

$oTags= _IETagNameGetCollection($oIE,'input') 
For $oTag in $oTags 
    If $oTag.GetAttribute('type')='submit' Then     
        $oTag.click() 
    EndIf 
Next

这应该有效..

解决了我的问题。

我想到了与上面的海报类似的东西。

$oLinks = _IETagNameGetCollection($oIE, "input")
For $oLink In $oLinks
    If String($oLink.type) = "submit" And String($oLink.value) = "Log On" Then
          _IEAction($oLink, "click")
          ExitLoop
    EndIf
Next